fix(acceptance): permit dropship pallet pick audit
This commit is contained in:
@@ -345,14 +345,12 @@ async function convertReceivingContainers(context, producers) {
|
||||
}
|
||||
}
|
||||
}
|
||||
const reservedCoverage = [...convertedInboundCodes].every((inboundCode) =>
|
||||
nonBlank(reservedPalletsByInbound[inboundCode]?.palletCode))
|
||||
context.addStep(MODULE, `整柜转换为逐入仓码独立计划 ${containerNo}`, convertedResponse,
|
||||
plans.length === inboundCodes
|
||||
&& plans.every((item) => Array.isArray(item?.lines) && item.lines.length > 0)
|
||||
&& convertedInboundCodes.size === inboundCodes && reservedCoverage,
|
||||
&& convertedInboundCodes.size === inboundCodes,
|
||||
`plans=${plans.length}, inboundCodes=${convertedInboundCodes.size}, reserved=${Object.keys(reservedPalletsByInbound).length}, expected=${inboundCodes}; ${trace(convertedResponse)}`, OPTIONS)
|
||||
if (plans.length !== inboundCodes || !reservedCoverage) return false
|
||||
if (plans.length !== inboundCodes || convertedInboundCodes.size !== inboundCodes) return false
|
||||
producer.receivingPalletsByInbound = reservedPalletsByInbound
|
||||
const replayResponse = await context.requestOverseas('POST',
|
||||
'/api/platform/v1/last-leg/inbound-plans/convert-container', body,
|
||||
|
||||
Reference in New Issue
Block a user