This is an automated email from the ASF dual-hosted git repository.

pawan pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new e375286  Fixed: InventoryItemStatus is not updated to INV_PROMISED 
status while creating sales order for serialized product(OFBIZ-8459)
e375286 is described below

commit e375286c74a0e7a77b2b629c031db4f6e4eb3020
Author: Pawan Verma <pawan.ve...@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 0eff3b5..e48304f 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"/>

Reply via email to