question

Alan avatar image
Alan asked Alan commented

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

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 Deactivated answered Alan commented
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
10 |2000

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

Alan avatar image Alan commented ·

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

0 Likes 0 ·

Welcome to the
Clover Developer Community