This is an automated email from the ASF dual-hosted git repository.
pawan pushed a commit to branch release18.12
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/release18.12 by this push:
new 025cc09 Fixed: InventoryItemStatus is not updated to INV_PROMISED status while creating sales order for serialized product(OFBIZ-8459)
025cc09 is described below
commit 025cc09588184e2da26666c26c76fc4c1071e270
Author: Pawan Verma <
[hidden email]>
AuthorDate: Thu May 28 17:25:03 2020 +0530
Fixed: InventoryItemStatus is not updated to INV_PROMISED status while creating sales order for serialized product(OFBIZ-8459)
Thanks, Vaibhav for the report and patch and Pranay for the review.
---
.../product/minilang/product/inventory/InventoryReserveServices.xml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/applications/product/minilang/product/inventory/InventoryReserveServices.xml b/applications/product/minilang/product/inventory/InventoryReserveServices.xml
index 1f3a222..b2a3256 100644
--- a/applications/product/minilang/product/inventory/InventoryReserveServices.xml
+++ b/applications/product/minilang/product/inventory/InventoryReserveServices.xml
@@ -400,8 +400,9 @@ under the License.
<if-compare value="SERIALIZED_INV_ITEM" operator="equals" field="inventoryItem.inventoryItemTypeId">
<if-compare value="INV_AVAILABLE" operator="equals" field="inventoryItem.statusId">
<!-- change status on inventoryItem -->
- <set value="INV_PROMISED" field="inventoryItem.statusId"/>
- <store-value value-field="inventoryItem"/>
+ <set field="updateInventoryItemMap.inventoryItemId" from-field="inventoryItem.inventoryItemId"/>
+ <set field="updateInventoryItemMap.statusId" value="INV_PROMISED"/>
+ <call-service service-name="updateInventoryItem" in-map-name="updateInventoryItemMap"/>
<!-- store OrderItemShipGrpInvRes record -->
<call-simple-method method-name="getPromisedDateTime"/>