Disable transaction creation in wash certificate generation
Commented out the transaction creation step for bookings to prevent unnecessary or redundant transactions. This ensures the booking process focuses solely on wash certificate completion and status updates without altering the transactional state.
This commit is contained in:
@@ -82,7 +82,7 @@ class generate_booking_wash_certificate_f extends form_helper_c
|
||||
// Send the wash certificate to the customer
|
||||
$bookings->sendWashCertificateToCustomer();
|
||||
// Create the transaction based on the booking
|
||||
$transaction = $bookings->createTransaction();
|
||||
//$transaction = $bookings->createTransaction();
|
||||
// Mark the booking as completed
|
||||
$bookings->status->set('completed');
|
||||
$bookings->washCertificateStatus->set('completed');
|
||||
|
||||
Reference in New Issue
Block a user