fix(firstleg): price dropship before preload confirmation

This commit is contained in:
2026-09-09 03:11:41 +08:00
parent c5862db98d
commit bf89a04883
7 changed files with 31 additions and 10 deletions
@@ -3,7 +3,7 @@ const OPTIONS = { scenario: 'phase3-container-operational-documents', deployment
const CONTAINERS = '/api/platform/v1/containers'
export const DOCUMENT_TYPES = Object.freeze([
'DESTINATION_CLEARANCE', 'DELIVERY_ORDER', 'PICKUP_ORDER',
'DESTINATION_CLEARANCE', 'DELIVERY_ORDER',
])
function id(value) { return value == null ? '' : String(value) }
@@ -122,7 +122,7 @@ export async function run(context) {
readPath: `${CONTAINERS}/${containerId}/clearance`,
completePath: `${CONTAINERS}/${containerId}/clearance/complete`,
},
...['DELIVERY_ORDER', 'PICKUP_ORDER'].map((type) => ({
...['DELIVERY_ORDER'].map((type) => ({
type,
uploadPath: `${CONTAINERS}/${containerId}/documents/${type}/upload`,
readPath: `${CONTAINERS}/${containerId}/documents/${type}`,