Task #18930
openTask #18880: Sprint Planning for 20/10/2025 - 31/10/2025
Incoterms - Validation not mandatory for Ocean Import
100%
Description
Currently, the same set of mandatory validations for Incoterms applies across all modes and directions (Import/Export).
However, in Ocean Import, users typically do not have pickup or delivery address details, since these are managed by the exporter or overseas agent.
As a result, users are forced to enter placeholder or dummy data to complete the record, leading to inaccurate information.
Therefore we need to dynamically adjust validation rules to reflect the import side.
Acceptance Criteria
1. Scope
- The rule applies only to Ocean Import shipments.
- Ocean Export workflows remain unchanged.
2. System Behavior
- When shipment mode = Ocean Import, the Pickup Address and Delivery Address fields should:
- Be non-mandatory and visually hidden (or greyed out) in the UI.
- Not trigger any validation during “Save” or change of HBL status “Approve/Confirmed.”
- The UI must not show mandatory asterisk (*) for these fields when mode = Import.
GitLab Sync Log
[{"id": "33210", "author": "Avisham", "hours": 1.5, "created": "2025-10-31T07:54:50.572Z", "log_date": "2025-10-31", "comment": "Imported from GitLab by @Avisham on 2025-10-31T07:54:50.572Z: 1h 30m-(1.5)h spend at: 2025-10-31", "status": "active", "deleted_by": "", "redmine_entry_id": 11066}, {"id": "33208", "author": "Avisham", "hours": 31.0, "created": "2025-10-31T07:54:35.925Z", "log_date": "2025-10-30", "comment": "Imported from GitLab by @Avisham on 2025-10-31T07:54:35.925Z: 3d 7h-(31.0)h spend at: 2025-10-30", "status": "deleted", "deleted_by": "33209", "redmine_entry_id": 11067}, {"id": "33217", "author": "Avisham", "hours": 0.5, "created": "2025-10-31T10:33:38.554Z", "log_date": "2025-10-30", "comment": "Imported from GitLab by @Avisham on 2025-10-31T10:33:38.554Z: 30m-(0.5)h spend at: 2025-10-30", "status": "active", "deleted_by": "", "redmine_entry_id": 11072}]