From: Scott G. <le...@ea...> - 2007-07-24 07:06:37
|
Author: lektran Date: 2007-07-24 00:06:40 -0700 (Tue, 24 Jul 2007) New Revision: 3953 Modified: versions/1.0/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml Log: OFBIZ trunk 554878, release4.0 557538 Added facilityId to requirements automatically created using one of the product/productStore requirement creation methods. This should also address OFBIZ-1134 Modified: versions/1.0/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml =================================================================== --- versions/1.0/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml 2007-07-24 07:04:26 UTC (rev 3952) +++ versions/1.0/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml 2007-07-24 07:06:40 UTC (rev 3953) @@ -239,6 +239,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> @@ -285,6 +286,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> |