Fix View Service History and View Notification Issue
- Updated sendNotification in InventoryManagementService, PaymentManagementService, and ServiceManagementService to use only the provided title instead of prefixing with service name. - Added "View Service History" header in CustomerMenu::viewServiceHistory for clarity. - Adjusted column widths in service history table for better alignment: - Booking ID column widened to 15. - Vehicle Brand, Vehicle Number, Vehicle Model, Discount %, and Status columns widened to 20. - Updated output formatting in CustomerMenu::viewServiceHistory to match new widths. - Added "View and Delete Notification" header in MenuHelper::viewAndDeleteNotification for clarity. - Moved empty notification validation from selectNotification to viewAndDeleteNotification: - Displays "No notifications available." message. - Added util::pressEnter() prompt before returning when no notifications exist. - Increased Notification title column width from 30 to 35 in selectNotification for improved readability. Fixes #1748
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ void ServiceManagementService::sendNotification(User* user, const std::string& t
|
||||
Factory::getObject<Notification>(
|
||||
user->getId(),
|
||||
user,
|
||||
"ServiceManagementService: " + title,
|
||||
title,
|
||||
message,
|
||||
util::Timestamp()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user