Refactor completeBooking method call and add method skeleton in order_bookings_o

- Updated `completeBooking` method call to directly use `$user->id` without `value()` extraction.
- Added `completeBooking` method skeleton in `order_bookings_o` with placeholders for future implementation.
This commit is contained in:
Jeppe Bundgaard
2025-11-10 12:09:22 +01:00
parent d53dd7645b
commit ad55e97b54
2 changed files with 10 additions and 1 deletions
@@ -166,4 +166,13 @@ class order_bookings_o extends db
];
}
public function completeBooking(int $user_id): void
{
// TODO: Create order
// TODO: Add order items
// TODO: Create wash certificate
// TODO: Send wash certificate
// TODO: Update booking with order ID
}
}
@@ -270,7 +270,7 @@ class orderBookingRoute
/**
* Complete the booking
*/
$object->completeBooking((int)$user->id->value());
$object->completeBooking((int)$user->id);
/**
* Return the object
*/