Author: lektran
Date: Thu Jul 19 02:49:43 2007
New Revision: 557538
URL:
http://svn.apache.org/viewvc?view=rev&rev=557538Log:
Applied fix from trunk for revision: 554878
Modified:
ofbiz/branches/release4.0/applications/order/script/org/ofbiz/order/order/OrderServices.xml
Modified: ofbiz/branches/release4.0/applications/order/script/org/ofbiz/order/order/OrderServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/script/org/ofbiz/order/order/OrderServices.xml?view=diff&rev=557538&r1=557537&r2=557538==============================================================================
--- ofbiz/branches/release4.0/applications/order/script/org/ofbiz/order/order/OrderServices.xml (original)
+++ ofbiz/branches/release4.0/applications/order/script/org/ofbiz/order/order/OrderServices.xml Thu Jul 19 02:49:43 2007
@@ -236,6 +236,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>
@@ -282,6 +283,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>