Hi,
I have a situation where an order containing products with volume discount gives wrong price information. Here is the example:
Dog crackers = 29,95 DKK a piece, if n_dog_crackers >= 2 then 24,98 DKK a piece. There is free delivery on purchases larger than 1500 DKK.
Here is how it's supposed to be like:
Total without discount: 60 dog crackers * 29,95 = 1797 DKK
Discount: (29,95-24,98)*60 = 298,2 (gets rounded? to 298,5) DKK
Total: 1498,5 DKK
Shipping: (not free since < 1500 DKK)
Vat: 1513,5 * 0,2 = 302,7 DKK
purchase + purchase2 of attached shows actual:
Total without discount: 1812 DKK
Discount: 298,5 DKK
Total: 1513,5 DKK
Shipping: Free
Vat: 302,7 DKK
Total is 15 DKK larger than it's supposed to and shipping is free. orderlines.png and price.png shows templatetags.
Secondly, if I press 'Pay' and navigate to quickpay, and press 'back' in the browser the price information changes to:
Total without discount: 1797 DKK
Discount: 298,5 DKK
Total: 1498,5 DKK
Shipping: Free
Vat: 52,9 DKK
Where the Total is correct but the Shipping and Vat is wrong. See _after_quickpay_nav.png files.
Dynamicweb version: 9.4.11
Where the first 15 DKK comes from I can't figure out. Why the information changes after navigation from quickpay (not when refreshing or navigating from elsewhere on the page) I don't know either.
Thanks