fix(client): retain customs access after order completion

This commit is contained in:
2026-10-02 11:33:51 +08:00
parent c115f1c504
commit 605388e666
5 changed files with 108 additions and 6 deletions
@@ -0,0 +1,6 @@
import type { FirstLegOrder } from '../types/firstLegOrder'
export function isCustomsOrderCandidate(order: Pick<FirstLegOrder, 'status' | 'taxMode'>): boolean {
return order.taxMode === 'TAX_REFUND'
&& (order.status === 'LOADED' || order.status === 'DELIVERED' || order.status === 'COMPLETED')
}