Compare commits
base: joelthomastrenser/Training-VehicleService-May26:07e21f2f60289fa163fb20663dc2577a5daae80c
joelthomastrenser/Training-VehicleService-May26:main
joelthomastrenser/Training-VehicleService-May26:develop
joelthomastrenser/Training-VehicleService-May26:develop-sm-bugfix-3
joelthomastrenser/Training-VehicleService-May26:develop-sm-bugfix-2
joelthomastrenser/Training-VehicleService-May26:develop-sm-bugfix-1
joelthomastrenser/Training-VehicleService-May26:develop-sm-events
joelthomastrenser/Training-VehicleService-May26:develop-sm-payment-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-inventory-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-service-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-authentication-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-notification-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-user-management
joelthomastrenser/Training-VehicleService-May26:develop-bugfix-1
joelthomastrenser/Training-VehicleService-May26:develop-bugfix-2
joelthomastrenser/Training-VehicleService-May26:develop-bugfix-3
joelthomastrenser/Training-VehicleService-May26:develop-demo-feedback-2
joelthomastrenser/Training-VehicleService-May26:develop-demo-feedback-1
joelthomastrenser/Training-VehicleService-May26:feature
joelthomastrenser/Training-VehicleService-May26:feature-display
joelthomastrenser/Training-VehicleService-May26:bugfix-1
joelthomastrenser/Training-VehicleService-May26:bugfix-3
joelthomastrenser/Training-VehicleService-May26:bugfix-2
joelthomastrenser/Training-VehicleService-May26:feature-1553-1598
joelthomastrenser/Training-VehicleService-May26:feature-1552-1560
joelthomastrenser/Training-VehicleService-May26:feature-1551-1561-1708
joelthomastrenser/Training-VehicleService-May26:feature-admin-management
joelthomastrenser/Training-VehicleService-May26:feature-file-management
joelthomastrenser/Training-VehicleService-May26:feature-customer-management
joelthomastrenser/Training-VehicleService-May26:feature-payment-management
joelthomastrenser/Training-VehicleService-May26:feature-service-management
joelthomastrenser/Training-VehicleService-May26:feature-notification-management
joelthomastrenser/Training-VehicleService-May26:feature-inventory-management
..
compare: joelthomastrenser/Training-VehicleService-May26:develop-demo-feedback-2
joelthomastrenser/Training-VehicleService-May26:main
joelthomastrenser/Training-VehicleService-May26:develop
joelthomastrenser/Training-VehicleService-May26:develop-sm-bugfix-3
joelthomastrenser/Training-VehicleService-May26:develop-sm-bugfix-2
joelthomastrenser/Training-VehicleService-May26:develop-sm-bugfix-1
joelthomastrenser/Training-VehicleService-May26:develop-sm-events
joelthomastrenser/Training-VehicleService-May26:develop-sm-payment-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-inventory-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-service-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-authentication-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-notification-management
joelthomastrenser/Training-VehicleService-May26:develop-sm-user-management
joelthomastrenser/Training-VehicleService-May26:develop-bugfix-1
joelthomastrenser/Training-VehicleService-May26:develop-bugfix-2
joelthomastrenser/Training-VehicleService-May26:develop-bugfix-3
joelthomastrenser/Training-VehicleService-May26:develop-demo-feedback-2
joelthomastrenser/Training-VehicleService-May26:develop-demo-feedback-1
joelthomastrenser/Training-VehicleService-May26:feature
joelthomastrenser/Training-VehicleService-May26:feature-display
joelthomastrenser/Training-VehicleService-May26:bugfix-1
joelthomastrenser/Training-VehicleService-May26:bugfix-3
joelthomastrenser/Training-VehicleService-May26:bugfix-2
joelthomastrenser/Training-VehicleService-May26:feature-1553-1598
joelthomastrenser/Training-VehicleService-May26:feature-1552-1560
joelthomastrenser/Training-VehicleService-May26:feature-1551-1561-1708
joelthomastrenser/Training-VehicleService-May26:feature-admin-management
joelthomastrenser/Training-VehicleService-May26:feature-file-management
joelthomastrenser/Training-VehicleService-May26:feature-customer-management
joelthomastrenser/Training-VehicleService-May26:feature-payment-management
joelthomastrenser/Training-VehicleService-May26:feature-service-management
joelthomastrenser/Training-VehicleService-May26:feature-notification-management
joelthomastrenser/Training-VehicleService-May26:feature-inventory-management
2 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
1032fc64bd |
Commit aee6356e: Implement Confirm Payment Functionality
<User Story> Complete Payments - 1797</User Story> <Changes> 1. Added Controller::getAllInvoices - Retrieves all invoices from PaymentManagementService and returns them as a read-only map. 2. Implemented Controller::confirmPayment - Delegates payment confirmation for a given invoice ID to PaymentManagementService. 3. Introduced PaymentManagementService::getAllInvoice - Provides access to all invoices stored in the datastore. 4. Added PaymentManagementService::confirmPayment - Confirms payment for a specific invoice, updates payment date and status, and sends notification. 5. Extended util::PaymentStatus enum - Added PAID status and updated string conversion. 6. Integrated AdminMenu::confirmPayment - Validates invoice list, filters by status, allows selection, and confirms payment. 7. Updated CustomerMenu::completePayments - Uses parameterized status filtering for invoice selection. 8. Enhanced MenuHelper::selectInvoiceFromUserForPayment - Accepts requiredStatus parameter for flexible filtering. 9. Adjusted AdminMenu options - Added "Confirm Payment" before Logout. </Changes> <Test> Acceptance Criteria: 1. Admin selects "Confirm Payment" from menu. - Verify system prompts and displays invoices filtered by status. 2. Admin selects invoice with status = PAID. - Verify payment confirmation updates date, sets status, and sends notification. 3. Admin attempts confirmation with empty invoice list. - Verify error message: "No pending invoices available for confirmation." 4. Customer completes payment. - Verify selection uses util::PaymentStatus::PENDING and payment flow works correctly. 5. Invalid invoice ID entered. - Verify system throws runtime_error with "Payment failed: invalid invoice ID." Precondition: 1. Admin logged into system. 2. At least one invoice exists in datastore. 3. Notification system available. Steps: 1. Navigate to Admin menu → Confirm Payment. 2. Select invoice with PAID status. 3. Confirm payment and check notification. 4. Attempt with empty invoice list. 5. Attempt with invalid invoice ID. </Test> <Review> Sreeja Reghukumar </Review> |
||
|
|
cfd1a2b675 |
Merged PR 1154: Implement Update Job Status for technician
- Renamed Controller and ServiceManagementService methods from completeJob to updateJobStatus for clarity and flexibility. - Enhanced ServiceManagementService::updateJobStatus to support transitions: - STARTED → INPROGRESS - INPROGRESS → COMPLETED (with invoice generation and customer notification). - Added INPROGRESS state to ServiceJobStatus enum and updated string conversion utilities. - Introduced filterJobCards helper to generalize job filtering by status. - Updated TechnicianMenu to allow technicians to select job type (Started/Inprogress) and update status accordingly. - Improved job display to show current status and truncated service names for readability. Related work items: #1798 |