Task #72
Updated by Srishti Ghosh 18 days ago
**User Story** * AWB Search DocType As a Canofy user, I want to verify import and export cargo shipments through the ACCS service so that I can retrieve shipment and customs-related information using MAWB or HAWB references. **Description** * AWB lookup Implement the ACCS cargo verification module within the Canofy ULIP integration application. * Shipment details The module integrates the ACCS service with the common cargo verification framework and supports import/export shipment searches using MAWB and HAWB numbers. The current implementation uses simulated ULIP responses to validate the complete workflow, including request handling, response processing, shipment * Carrier information display and error handling. The module retrieves cargo information such as shipment status, origin, destination, flight details, airline, cargo location, customs status and last updated timestamp. **Configuration / Prerequisites** Common cargo and shipment verification framework completed. ULIP client/service layer configured. ACCS service method implemented. Import/export selection available. MAWB and HAWB search options available. Mock ACCS responses configured for successful, failed and server-error scenarios. **Acceptance Criteria** User can select Export or Import cargo. User can search using a supported MAWB number. User can search using a supported HAWB number. Successful ACCS responses are processed and displayed correctly. Shipment results display relevant information including: MAWB Number HAWB Number Shipment * Status tracking Origin Destination Flight Number Airline Cargo Location Customs Status Last Updated Invalid cargo references return a clear No cargo found response. ACCS service/server errors are handled gracefully without breaking the application. The module follows the common cargo verification workflow established in Task 8. The mock ACCS implementation can be replaced by the actual ULIP API once government approval, credentials and API access are provided. **Test Cases** TC01 – Export MAWB Verification Select Export → MAWB and enter: 176-98765432 Expected Result: ACCS returns the simulated export shipment with status Cargo Accepted, Delhi as origin, Singapore as destination and the corresponding cargo/customs information. TC02 – Import MAWB Verification Select Import → MAWB and enter: 020-12345678 Expected Result: The import shipment is retrieved successfully with status Ready for Delivery, Frankfurt as origin and Mumbai as destination. TC03 – HAWB Verification Select HAWB search and enter: HAWB-EXP-45821 Expected Result: The associated export shipment is retrieved successfully and the corresponding MAWB/HAWB and cargo details are displayed. TC04 – Invalid Cargo Reference Enter: 000-00000000 Expected Result: The application displays a clear No cargo found message and remains functional. TC05 – ACCS Server Error Enter: ERROR500 Expected Result: The simulated ACCS service exception is handled gracefully and an appropriate service-unavailable/error message is displayed. * History