fix(client): retain customs access after order completion
This commit is contained in:
@@ -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')
|
||||
}
|
||||
Reference in New Issue
Block a user