Test #17

Merged
admin merged 127 commits from test into main 2026-09-28 16:00:14 +08:00
Showing only changes of commit c346c6b1ba - Show all commits
@@ -862,9 +862,12 @@ async function runReceiving(context, token, secondaryToken, merchantToken, prefe
const warehouseFacts = await verifyWarehouseQueries(context, token, inbound.inboundCode,
pallets.get(inbound.inboundCode), inbound.destinationType)
if (warehouseFacts && context.context?.phase4OverseasPdaOperations) {
const producerFixture = (context.createdResources?.phase4InboundProducerFixtures?.containers || [])
.find((item) => id(item?.inboundCode) === id(inbound.inboundCode))
const fixture = {
containerNo, order, destinationType: inbound.destinationType,
fbaWarehouseCode: inbound.destinationType === 'FBA' ? inbound.fbaWarehouseCode : null,
resourceKey: producerFixture?.resourceKey || null,
auxiliaryPallets: generatedContainerPallets.filter((candidate) =>
id(candidate?.palletId) !== id(warehouseFacts.pallet?.palletId)),
...warehouseFacts,