You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pa...@apache.org on 2020/05/28 11:56:36 UTC

[ofbiz-framework] branch release18.12 updated: Fixed: InventoryItemStatus is not updated to INV_PROMISED status while creating sales order for serialized product(OFBIZ-8459)

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.git


The 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 <pa...@hotwaxsystems.com>
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"/>