Project

General

Profile

Task #18801

Updated by Redmine Admin 6 months ago

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** 

 1. **HAWB Status Management:** Implement a status lifecycle: **Draft/In Progress** →<span dir=""> </span>**Confirmed** →**Approved** **Draft****Finalized** **Approved****Sent to Airline**. **Finalized**. 
 2. Initially Status is **Draft/In Progress** **Draft** 
 3. **Validation:** Require passing only standard field validation before approval. 

 **Functionality Details** 

 <table> 
 <tr> 
 <td>Action</td> 
 <td>Pre-condition</td> 
 <td>Process/Outcome</td> 
 </tr> 
 <tr> 
 <td> 

 **"Confirm HAWB" Button** 
 </td> 
 <td> 

 HAWB Status is **Draft/In Progress**. **Draft**. 
 </td> 
 <td> 

 **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**. 
 </td> 
 </tr> 
 <tr> 
 <td> 

 **“Approve FWB” Button** 
 </td> 
 <td> 

 HAWB Status is **Confirmed**. **Confirm**. 
 </td> 
 <td> 

 **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**. 
 </td> 
 </tr> 
 <tr> 
 <td> 

 **"Finalize HAWB" Button** 
 </td> 
 <td> 

 HAWB Status is **Approved**. **Approve**. 
 </td> 
 <td> 

 **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**. 
 </td> 
 </tr> 
 </table> 

 **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. editing. 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 |

Back