svn commit: r680310 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml

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

svn commit: r680310 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml

jacopoc
Author: jacopoc
Date: Mon Jul 28 03:11:46 2008
New Revision: 680310

URL: http://svn.apache.org/viewvc?rev=680310&view=rev
Log:
Improved support for status field in non serialized inventory items: now also items that are explicitely marked as "available" (not just the ones with a null status id) are counted.

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

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml?rev=680310&r1=680309&r2=680310&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml Mon Jul 28 03:11:46 2008
@@ -647,7 +647,10 @@
                             </and>
                             <and>
                                 <if-empty field="parameters.statusId"/>
-                                <if-empty field="inventoryItem.statusId"/>
+                                <or>
+                                    <if-empty field="inventoryItem.statusId"/>
+                                    <if-compare operator="equals" field="inventoryItem.statusId" value="INV_AVAILABLE"/>
+                                </or>
                             </and>
                         </or>
                     </condition>