Hi David

I'm not familiar with the code but the condition seems a little strange to me, it used to be this: if product requirement is PRODRQM_ATP then run the rest of the code in the block
Now it looks like this:
if product requirement is PRODRQM_ATP AND productStore requirement is also PRODRQM_ATP then run the rest of the code in the block

Is it correct that the rest of the code should only be executed if both the product and the product store have PRODRQM_ATP set?

Thanks
Scott

On 3/09/2009, at 12:55 PM, [email protected] wrote:

Author: jonesde
Date: Thu Sep  3 00:55:50 2009
New Revision: 810748

URL: http://svn.apache.org/viewvc?rev=810748&view=rev
Log:
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");



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to