svn commit: r920357 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServices.xml

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

svn commit: r920357 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServices.xml

jacopoc
Author: jacopoc
Date: Mon Mar  8 15:26:44 2010
New Revision: 920357

URL: http://svn.apache.org/viewvc?rev=920357&view=rev
Log:
Applied patch from Divesh Dutta (OFBIZ-3545): fixed wrong check for status id of inventory items (status codes were used instead of status ids) that was causing sales order reservations of defective items.

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServices.xml?rev=920357&r1=920356&r2=920357&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServices.xml Mon Mar  8 15:26:44 2010
@@ -423,8 +423,8 @@
                 <if>
                     <condition>
                         <and>
-                            <if-compare field="inventoryItem.statusId" operator="not-equals" value="ON_HOLD_NS"/>
-                            <if-compare field="inventoryItem.statusId" operator="not-equals" value="DEFECTIVE_NS"/>
+                            <if-compare field="inventoryItem.statusId" operator="not-equals" value="INV_NS_ON_HOLD"/>
+                            <if-compare field="inventoryItem.statusId" operator="not-equals" value="INV_NS_DEFECTIVE"/>
                             <not><if-empty field="inventoryItem.availableToPromiseTotal"/></not>
                             <if-compare field="inventoryItem.availableToPromiseTotal" operator="greater" value="0" type="BigDecimal"/>
                         </and>