[OFBiz] SVN: r6551 - trunk/applications/product/script/org/ofbiz/product/inventory
jonesde@svn.ofbiz.org
jonesde at svn.ofbiz.org
Mon Jan 23 02:06:36 CST 2006
Author: jonesde
Date: 2006-01-23 02:06:33 -0600 (Mon, 23 Jan 2006)
New Revision: 6551
Modified:
trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
Log:
Changed createInventoryItemDetail to put in 0 if ATP-diff or QOH-diff are null/empty; this fixes and issue with stock moves and such
Modified: trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
===================================================================
--- trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml 2006-01-23 07:37:42 UTC (rev 6550)
+++ trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml 2006-01-23 08:06:33 UTC (rev 6551)
@@ -83,7 +83,11 @@
<field-to-result field-name="newEntity.inventoryItemDetailSeqId" result-name="inventoryItemDetailSeqId"/>
<set-nonpk-fields map-name="parameters" value-name="newEntity"/>
-
+
+ <!-- if availableToPromiseDiff or quantityOnHandDiff are empty set to 0 -->
+ <if-empty field-name="newEntity.availableToPromiseDiff"><set field="newEntity.availableToPromiseDiff" value="0" type="Double"/></if-empty>
+ <if-empty field-name="newEntity.quantityOnHandDiff"><set field="newEntity.quantityOnHandDiff" value="0" type="Double"/></if-empty>
+
<create-value value-name="newEntity"/>
</simple-method>
<simple-method method-name="updateInventoryItemFromDetail" short-description="Update an InventoryItem From the Associated Detail Records" login-required="false">
More information about the Svn
mailing list