PriceRule applies action to wrong priceType -------------------------------------------
Key: OFBIZ-4766 URL: https://issues.apache.org/jira/browse/OFBIZ-4766 Project: OFBiz Issue Type: Bug Components: product Affects Versions: SVN trunk Reporter: Sebastian Leitner Attachments: PriceServices.java.patch If you create a PriceRule and add an action of type "PRICE_POD" (Percent of default price) I read this as: "take the default price and give an amount of x% to that" These rules are applied within the service "calculateProductPrice" (specifically in PriceServices.calcPriceResultFromRules). It calculates the amount of discount using the default price (as specified by the action of the rule). But then it adds this discount to the _listPrice_ instead of the _defaultPrice_. An example: listPrice = 100, defaultPrice = 10, rule says you give 10% of defaultPrice, modifyAmount = -1 (this is the correct discount amount) result would be 100-1 = 99. I consider this to be a bug, not some sort of easter-egg feature ;-) I will attach a patch for this. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira