Skip to main content

Configuration fields

Validation rules

Core calculation

  1. Start from the gross bill amount (after quantity discounts, the pricing model, and commitments), then subtract any fixed discount that runs ahead of it in the stack, per the default order.
  2. Apply the percentage: discount = value% × amount.
  3. Subtract: invoice_amount = amount − discount, floored at $0.

Order of operations (full calculation stack)

Natural ordering when stacking discount types

Multiple percent discounts compound rather than add: 20% + 10% = 1 − (0.8 × 0.9) = 28%, not 30%. The order between multiple percent discounts never changes the result, since compounding is commutative.

Invoice presentation

The discount appears as a line item on the invoice using the configured label. Each period produces a breakdown record tracking: amounts before and after, discount applied, and percentage.

Risks and edge cases

Glossary

Out of scope / deferred