Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Changing Rounding of Discounts

$
0
0

Hi

This is in reference to an old topic :

world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2018/6/changing-rounding-of-discounts/

Here, it was mentioned that a possible solution will be made available in Commerce 12.4 and I do see below in Release notes :

https://world.episerver.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=COM-7335

Per the above solution, it says the rounding at the end should take care of the cent discrepancy.

However, i'm working with Commerce 12.17.2 and I'm still noticing the cent discrepancy. What I observe is the rounding only happens away from 0, for examples, if a discount is 10.405, its rounded to 10.40, whereas if its 10.455, its rounded to 10.46. This is causing a conflict.

See an example below that applies 10% discount on order, but becasue one of the lineitem totals after discount suffers from above, it ends up causing a 1 cent discrepancy between order subtotal and sum of lineitem subtotals :

Please advice if there is a way to handle this? Can we override how Epi rounds discount amounts?


Viewing all articles
Browse latest Browse all 8020

Trending Articles