diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index 6f599645..9d56b736 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -149,7 +149,8 @@ const actions: ActionTree = { const poShipment = { shipmentId, - items: payload.items + items: payload.items, + isMultiReceivingEnabled: true } await this.dispatch('shipment/receiveShipment', poShipment).catch((err) => console.error(err)) }) diff --git a/src/store/modules/shipment/actions.ts b/src/store/modules/shipment/actions.ts index ffe4adb2..0282ecf9 100644 --- a/src/store/modules/shipment/actions.ts +++ b/src/store/modules/shipment/actions.ts @@ -106,7 +106,7 @@ const actions: ActionTree = { let areAllSuccess = true; for (const item of payload.items) { - if(item.quantityReceived === 0) { + if(payload.isMultiReceivingEnabled || item.quantityReceived === 0) { if (!item.locationSeqId) { console.error("Missing locationSeqId on item"); areAllSuccess = false;