Price Rules: markup from average cost

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Price Rules: markup from average cost

Dave Tenerowicz
I'm seeing some weird behavior when I setup price rules to markup from
average cost.

The priceRuleAction  is set to "Percent of average cost"=10

The product cost is setup as $0.213
Sale price is $0.30

When I add the item to the cart,  I am getting a price of $0.3213  
(which seems to be the default sales price plus 10% of the cost !!)

I should be getting the cost +10%, or .213+.0213 = 0.2343 each.

The relevant code in PriceServices.java looks ok:
"                 } else if
("PRICE_POAC".equals(productPriceAction.getString("productPriceActionTypeId")))
{
                        if (productPriceAction.get("amount") != null) {
                            modifyAmount = averageCost *
(productPriceAction.getDouble("amount").doubleValue() / 100.0); "

Am I missing some setting, or is this something related to numeric
precision or something else? Any ideas?
 

 
Dave Tenerowicz
[hidden email]

Office: 303.493.6727
Mobile 303.906.6116
Fax 303.814.8331

Visit us at http://www.salmonllc.com
For ERP Information: http://www.salmonllc.com/Jsp/vanity/ERP_CRM.jsp?nav=2&NavBarId=ERP_CRMServices