question

Alan avatar image
Alan asked ·

Order-level Discount rounding (negative value)

Hi Clover,
How are the order-level discounts rounded? I'm aware of the rounding rules on tax, and read that discounts are rounded in the same manner.
However, since discount totals are negative values, does that mean rounding rules are reversed?
E.g: For an order discount of -34.567cent, would that be rounded up to -34c (following tax rounding rules) or down to -35c (flipped).
Regards,
Alan
OrdersDiscounts
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Mark Mullan avatar image
Mark Mullan answered ·
Hi @Alan,

A discount of -34.567 cents will be rounded to -35 cents.

You also might find value in our OrderCalc class, depending on how much additional information you're looking for.
1 comment Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks @Mark Mullan , wasn't aware that was public

0 Likes 0 · ·

Welcome to the
Clover Developer Community