Author: jacopoc
Date: Tue Jul 10 02:11:50 2007
New Revision: 554878

URL: http://svn.apache.org/viewvc?view=rev&rev=554878
Log:
Added facilityId to requirements automatically created using one of the 
product/productStore requirement creation methods.
This should also address OFBIZ-1134

Modified:
    
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml

Modified: 
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml?view=diff&rev=554878&r1=554877&r2=554878
==============================================================================
--- 
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml 
(original)
+++ 
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml 
Tue Jul 10 02:11:50 2007
@@ -240,6 +240,7 @@
                     <!-- If this new issuance will cause the 
quantityOnHandTotal to go below the minimumStock, create a new requirement -->
                     <if-compare-field field-name="newQuantityOnHand" 
to-field-name="productFacility.minimumStock" operator="less" type="Double">
                         <set from-field="inventoryItem.productId" 
field="inputMap.productId"/>
+                        <set from-field="productFacility.facilityId" 
field="inputMap.facilityId"/>
                         <if-not-empty 
field-name="productFacility.reorderQuantity">
                             <set from-field="productFacility.reorderQuantity" 
field="inputMap.quantity"/>
                         <else>
@@ -286,6 +287,7 @@
                     <!-- If before this reservation the 
availableToPromiseTotal was over minimumStock, create a new requirement -->
                     <if-compare-field field-name="oldAvailableToPromise" 
to-field-name="productFacility.minimumStock" operator="greater-equals" 
type="Double">
                         <set from-field="inventoryItem.productId" 
field="inputMap.productId"/>
+                        <set from-field="productFacility.facilityId" 
field="inputMap.facilityId"/>
                         <if-not-empty 
field-name="productFacility.reorderQuantity">
                             <set from-field="productFacility.reorderQuantity" 
field="inputMap.quantity"/>
                         <else>


Reply via email to