svn commit: r955340 - /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: r955340 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServices.xml

ashish-18
Author: ashish
Date: Wed Jun 16 18:30:24 2010
New Revision: 955340

URL: http://svn.apache.org/viewvc?rev=955340&view=rev
Log:
Inventory reservations should not be done with defective inventory in system.
Patch from Pranay Pandey(Thanks!)

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=955340&r1=955339&r2=955340&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 Wed Jun 16 18:30:24 2010
@@ -88,6 +88,8 @@ under the License.
                         <condition-expr field-name="containerId" from-field="parameters.containerId" ignore-if-empty="true" ignore-if-null="true"/>
                         <condition-expr field-name="quantityOnHandTotal" operator="greater" value="0.0"/>
                         <condition-expr field-name="locationTypeEnumId" operator="equals" value="FLT_PICKLOC"/>
+                        <condition-expr field-name="statusId" operator="not-equals" value="INV_NS_DEFECTIVE"/>
+                        <condition-expr field-name="statusId" operator="not-equals" value="INV_DEFECTIVE"/>
                     </condition-list>
                     <order-by field-name="${orderByString}"/>
                 </entity-condition>
@@ -108,6 +110,8 @@ under the License.
                             <condition-expr field-name="containerId" from-field="parameters.containerId" ignore-if-empty="true" ignore-if-null="true"/>
                             <condition-expr field-name="quantityOnHandTotal" operator="greater" value="0.0"/>
                             <condition-expr field-name="locationTypeEnumId" operator="equals" value="FLT_BULK"/>
+                            <condition-expr field-name="statusId" operator="not-equals" value="INV_NS_DEFECTIVE"/>
+                            <condition-expr field-name="statusId" operator="not-equals" value="INV_DEFECTIVE"/>
                         </condition-list>
                         <order-by field-name="${orderByString}"/>
                     </entity-condition>
@@ -129,6 +133,8 @@ under the License.
                             <condition-expr field-name="containerId" from-field="parameters.containerId" ignore-if-empty="true" ignore-if-null="true"/>
                             <condition-expr field-name="quantityOnHandTotal" operator="greater" value="0.0"/>
                             <condition-expr field-name="locationSeqId" operator="equals" from-field="nullField"/>
+                            <condition-expr field-name="statusId" operator="not-equals" value="INV_NS_DEFECTIVE"/>
+                            <condition-expr field-name="statusId" operator="not-equals" value="INV_DEFECTIVE"/>
                         </condition-list>
                         <order-by field-name="${orderByString}"/>
                     </entity-condition>