Author: jonesde
Date: Thu Sep 3 00:55:50 2009
New Revision: 810748
URL:
http://svn.apache.org/viewvc?rev=810748&view=revLog:
Small fix so that the ProductStore.requirementMethodEnumId works for the PRODRQM_ATP value
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/requirement/RequirementServices.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/requirement/RequirementServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/requirement/RequirementServices.java?rev=810748&r1=810747&r2=810748&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/requirement/RequirementServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/requirement/RequirementServices.java Thu Sep 3 00:55:50 2009
@@ -269,7 +269,8 @@
GenericValue item = (GenericValue) iter.next();
GenericValue product = item.getRelatedOne("Product");
if (product == null) continue;
- if (! "PRODRQM_ATP".equals(product.get("requirementMethodEnumId"))) continue;
+
+ if (!"PRODRQM_ATP".equals(product.get("requirementMethodEnumId")) && !"PRODRQM_ATP".equals(productStore.get("requirementMethodEnumId"))) continue;
BigDecimal quantity = item.getBigDecimal("quantity");
BigDecimal cancelQuantity = item.getBigDecimal("cancelQuantity");