Author: pranayp
Date: Sat Oct 15 09:50:06 2016
New Revision: 1765030
URL:
http://svn.apache.org/viewvc?rev=1765030&view=revLog:
Fixed: InventoryItemStatus logging for reserved serialized inventory item.
(OFBIZ-8459)
InventoryItemStatus will now be logged as: INV_PROMISED when a serialized inventory item is reserved for an order.
Thanks: Vaibhav Jain for the contribution.
Modified:
ofbiz/trunk/applications/product/minilang/product/inventory/InventoryReserveServices.xml
Modified: ofbiz/trunk/applications/product/minilang/product/inventory/InventoryReserveServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/minilang/product/inventory/InventoryReserveServices.xml?rev=1765030&r1=1765029&r2=1765030&view=diff==============================================================================
--- ofbiz/trunk/applications/product/minilang/product/inventory/InventoryReserveServices.xml (original)
+++ ofbiz/trunk/applications/product/minilang/product/inventory/InventoryReserveServices.xml Sat Oct 15 09:50:06 2016
@@ -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"/>