derive primary FBA destination from producer matrix
This commit is contained in:
@@ -1521,7 +1521,9 @@ export class AcceptanceRun {
|
|||||||
this.context.orderFulfillmentType = fulfillmentType
|
this.context.orderFulfillmentType = fulfillmentType
|
||||||
this.context.phase4ProducerMatrixMarker = matrixMarker
|
this.context.phase4ProducerMatrixMarker = matrixMarker
|
||||||
if (destinationType === 'FBA' && label === 'FBA-SECOND') {
|
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)
|
const primaryCode = existingFba.map(item => String(item?.destinationWarehouseCode || '').trim().toUpperCase()).find(Boolean)
|
||||||
this.context.waitSplitRoute = {
|
this.context.waitSplitRoute = {
|
||||||
...(this.context.waitSplitRoute || {}),
|
...(this.context.waitSplitRoute || {}),
|
||||||
|
|||||||
Reference in New Issue
Block a user