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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

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

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


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

commit 45a7deecfe5add8716d0c71e735890ed34824666
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 c111e38..fb4f603 100644
--- a/applications/product/minilang/product/inventory/InventoryReserveServices.xml
+++ b/applications/product/minilang/product/inventory/InventoryReserveServices.xml
@@ -398,8 +398,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"/>