diff --git a/scripts/admin-test-env-modules/phase4-overseas-pda.mjs b/scripts/admin-test-env-modules/phase4-overseas-pda.mjs index f944afd0c..813ec4d63 100644 --- a/scripts/admin-test-env-modules/phase4-overseas-pda.mjs +++ b/scripts/admin-test-env-modules/phase4-overseas-pda.mjs @@ -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,