Task #18801
openTask #19558: Sprint Planning for 23/03/2026 - 30/03/2026
House AWB Repository _ Air Import - HAWB Status
0%
Description
The user should be able to confirm and lock the data on a House Air Waybill (HAWB), So that no more changes can be done at a certain stage.
Scope
- HAWB Status Management: Implement a status lifecycle: Draft/In Progress → Confirmed →Approved → Finalized → Sent to Airline.
- Initially Status is Draft/In Progress
- Validation: Require passing only standard field validation before approval.
Functionality Details
| Action | Pre-condition | Process/Outcome |
|
"Confirm HAWB" Button |
HAWB Status is Draft/In Progress. |
1. Re-run Standard Validation: Check all basic field rules (e.g., AWB prefix, weight, pieces, SLAC, etc.). 2. Success: Change HAWB Status to Confirmed. 3. Failure: Display error messages detailing required fixes. Status remains Draft. |
|
“Approve FWB” Button |
HAWB Status is Confirmed. |
1. Re-run Standard Validation: Check all basic field rules (e.g., AWB prefix, weight, pieces, SLAC, etc.). 2. Success: Change HAWB Status to Approved. 3. Failure: Display error messages detailing required fixes. Status remains Confirmed. |
|
"Finalize HAWB" Button |
HAWB Status is Approved. |
1. Re-run Standard Validation: Check all basic field rules (e.g., AWB prefix, weight, pieces, SLAC, etc.). 2. Success: Change HAWB Status to Finalized. Lock all HAWB editing fields. 3. Failure: Display error messages detailing required fixes. Status remains Approved. |
Business Rules
- Editing Lock: Once the HAWB Status is Finalized, all MAWB and HAWB data fields become read-only. Users with an elevated “Edit_Finalized_HAWB” authority can unlock a Finalized HAWB for editing by providing a reason. This action automatically reverts the HAWB Status back to Draft.
Audit Logging¶
The system must store the following actions in the audit log.
| Event | Logged Data |
|---|---|
| Confirm HAWB | User, Date, HAWB Number |
| Approve HAWB | User, Date |
| Finalize HAWB | User, Date |
| Unlock HAWB | User, Date, Reason |
GitLab Sync Log
[{"id": "37694", "author": "Ra-ees Peeroo", "hours": 7.0, "created": "2026-01-27T07:09:08.041Z", "log_date": "2026-01-25", "comment": "Imported from GitLab by @Ra-ees Peeroo on 2026-01-27T07:09:08.041Z: 7h-(7.0)h spend at: 2026-01-25", "status": "active", "deleted_by": "", "redmine_entry_id": 12055}, {"id": "37763", "author": "Ra-ees Peeroo", "hours": 7.0, "created": "2026-01-28T07:44:16.473Z", "log_date": "2026-01-26", "comment": "Imported from GitLab by @Ra-ees Peeroo on 2026-01-28T07:44:16.473Z: 7h-(7.0)h spend at: 2026-01-26", "status": "active", "deleted_by": "", "redmine_entry_id": 12071}, {"id": "37863", "author": "Ra-ees Peeroo", "hours": 7.0, "created": "2026-01-30T05:00:44.516Z", "log_date": "2026-01-27", "comment": "Imported from GitLab by @Ra-ees Peeroo on 2026-01-30T05:00:44.516Z: 7h-(7.0)h spend at: 2026-01-27", "status": "active", "deleted_by": "", "redmine_entry_id": 12091}, {"id": "37862", "author": "Ra-ees Peeroo", "hours": 7.0, "created": "2026-01-30T05:00:36.726Z", "log_date": "2026-01-28", "comment": "Imported from GitLab by @Ra-ees Peeroo on 2026-01-30T05:00:36.726Z: 7h-(7.0)h spend at: 2026-01-28", "status": "active", "deleted_by": "", "redmine_entry_id": 12092}, {"id": "38578", "author": "Ra-ees Peeroo", "hours": 8.0, "created": "2026-02-11T05:31:22.253Z", "log_date": "2026-02-08", "comment": "Imported from GitLab by @Ra-ees Peeroo on 2026-02-11T05:31:22.253Z: 1d-(8.0)h spend at: 2026-02-08", "status": "active", "deleted_by": "", "redmine_entry_id": 12242}, {"id": "40897", "author": "Ra-ees Peeroo", "hours": 4.0, "created": "2026-03-25T05:03:24.059Z", "log_date": "2026-03-23", "comment": "Imported from GitLab by @Ra-ees Peeroo on 2026-03-25T05:03:24.059Z: 4h-(4.0)h spend at: 2026-03-23", "status": "active", "deleted_by": "", "redmine_entry_id": 12739}, {"id": "40913", "author": "Ra-ees Peeroo", "hours": 4.0, "created": "2026-03-25T06:43:07.937Z", "log_date": "2026-03-24", "comment": "Imported from GitLab by @Ra-ees Peeroo on 2026-03-25T06:43:07.937Z: 4h-(4.0)h spend at: 2026-03-24", "status": "active", "deleted_by": "", "redmine_entry_id": 12743}]