derive primary FBA destination from producer matrix

This commit is contained in:
2026-09-23 22:41:14 +08:00
parent 85379df182
commit e19a30cc16
+3 -1
View File
@@ -1521,7 +1521,9 @@ export class AcceptanceRun {
this.context.orderFulfillmentType = fulfillmentType
this.context.phase4ProducerMatrixMarker = matrixMarker
if (destinationType === 'FBA' && label === 'FBA-SECOND') {
const existingFba = this.createdResources.phase4InboundProducerFixtures?.byDestinationType?.FBA || []
const existingFba = (this.createdResources.phase4InboundProducerFixtures?.containers || [])
.filter(item => item?.destinationType === 'FBA'
&& item?.fulfillmentType !== 'ONE_CLICK_DROPSHIP')
const primaryCode = existingFba.map(item => String(item?.destinationWarehouseCode || '').trim().toUpperCase()).find(Boolean)
this.context.waitSplitRoute = {
...(this.context.waitSplitRoute || {}),