You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to have the ability to configure OrderTotal rounding.
Eg. in Sweden decimals (ören/cents) are not used anymore, and when using discount codes with percentage, the order total get decimals.
i want the order totals (only) to look like this:
Sub-total: 10,00
Tax 2,50
My I suggest a slightly different implementation.
Instead of using the suggested RoundingType it would be sufficient to state the precision as decimal (like 0.01, 0.05, 0.5) and a rounding type that states midpoint rounding (to even, AwayFromZero).
Rounding could then be implemented as:
v: the value to round
p: precision as decimal
m: midpoint rounding
q = Math.Truncate(v/p);
r = Math.Round(v/p - q, m);
result = (q + r) * p;
Furthermore, I would suggest to have two rounding settings per currency. One for Price and one for Amount. Additionally, there might be the need to have a separate rounding scheme for order total only.
Would be nice to have the ability to configure OrderTotal rounding.
Eg. in Sweden decimals (ören/cents) are not used anymore, and when using discount codes with percentage, the order total get decimals.
i want the order totals (only) to look like this:
Sub-total: 10,00
Tax 2,50
Rounding: 0,50
Total: 13,00
See discussion at http://www.nopcommerce.com/boards/t/41958/suggestion-ordertotal-rounding.aspx (waiting for reply)
and https://en.wikipedia.org/wiki/Cash_rounding
See related work item - #677
Contribution: #1983 and #1992
The text was updated successfully, but these errors were encountered: