feat: enhance contract clearance functionality and UI, update routing and status handling

This commit is contained in:
Marshal
2026-06-28 21:02:37 +00:00
parent fc1adce909
commit 01172daaa5
7 changed files with 191 additions and 219 deletions

View File

@@ -479,13 +479,19 @@ export class ContractClearanceService {
}
/**
* GL ET queue: customs (Path B) contracts awaiting pre-booking document review.
* GL ET clearance hub: every customs (Path B) contract that still needs
* customs clearance — awaiting the customer's documents, under GL review, or
* finalized and waiting for the customer to create the booking in the portal.
*/
async queue(filter: FilterContractDto): Promise<PaginatedContracts> {
return this.contractsRepository.findAllPaginated({
page: filter.page ?? 1,
pageSize: filter.pageSize ?? 100,
statuses: ['CLEARANCE_UNDER_REVIEW'],
statuses: [
'AWAITING_CLEARANCE_DOCUMENTS',
'CLEARANCE_UNDER_REVIEW',
'CLEARANCE_READY_FOR_BOOKING',
],
customsClearingEnabled: true,
sortBy: filter.sortBy,
sortOrder: filter.sortOrder,