Implemented Review Fixes
This commit is contained in:
+12
@@ -541,6 +541,18 @@ static void restoreInventory(ServiceBooking* booking)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Function: processBookingCancellation
|
||||||
|
Description: Handles cancellation or reassignment of a service booking based on user type.
|
||||||
|
Cancels associated job cards, updates booking status, clears technician assignments,
|
||||||
|
restores inventory, and sends appropriate notifications.
|
||||||
|
Parameters:
|
||||||
|
ServiceBooking* booking - The booking to cancel or reset
|
||||||
|
util::Map<std::string, JobCard*>& jobs - Collection of job cards to update
|
||||||
|
ServiceManagementService& currentService - Service layer for notifications
|
||||||
|
util::UserType userType - Type of user initiating cancellation (CUSTOMER or TECHNICIAN)
|
||||||
|
Return type: void
|
||||||
|
*/
|
||||||
static void processBookingCancellation(ServiceBooking* booking,
|
static void processBookingCancellation(ServiceBooking* booking,
|
||||||
util::Map<std::string, JobCard*>& jobs,
|
util::Map<std::string, JobCard*>& jobs,
|
||||||
ServiceManagementService& currentService,
|
ServiceManagementService& currentService,
|
||||||
|
|||||||
Reference in New Issue
Block a user