[ https://issues.apache.org/jira/browse/OFBIZ-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546021 ]
Jacques Le Roux commented on OFBIZ-1432: ---------------------------------------- William, You maybe right but I can't see any problems with quantity, nor prices rules. Have you an use case you could reproduce on official demo server : https://demo.hotwaxmedia.com/. I f you look at it before it reboots and clears the DB you will see 2 tries I did. They worked well without any changes. The tries are : https://demo.hotwaxmedia.com/ordermgr/control/ViewQuote?quoteId=CQ10000 https://demo.hotwaxmedia.com/ordermgr/control/ViewQuote?quoteId=CQ10001 They use a trivial price rule of 10% discount on the product GZ-2644 > Price rule does not work with quote > ----------------------------------- > > Key: OFBIZ-1432 > URL: https://issues.apache.org/jira/browse/OFBIZ-1432 > Project: OFBiz > Issue Type: Bug > Components: order > Reporter: William Perng > Assignee: Jacques Le Roux > > When setup quote item, the default price is always used regardless price > rule. > I think the problem is in the createQuoteItem method of QuoteServices.xml. > When the "calculateProductPrice" service is called, the quantity is not > passed in. The quantity needs to be set before the "calculateProductPrice" > service is called. I suggest to add the following code to line 304 of > QuoteServices.xml (base on ver : 566181): <set > from-field="parameters.quantity" field="calculateProductPriceMap.quantity"/> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.