Tax & VAT/GST Calculations

Allocate a document discount across mixed taxes

When a flat document discount spans lines with different tax treatments, InvoiceDiplomat apportions the discount proportionally across tax buckets using largest-remainder allocation so the allocated cents always add up to the exact discount entered. Allocating a $0.01 document discount across a $1.00 bucket and a $2.00 bucket gives exact shares of one-third cent and two-thirds cent; the $2.00 bucket holds the larger remainder and receives the full $0.01, keeping tax bases exact.

Applying an invoice-wide discount is simple when every line shares one tax rate, but mixed-tax orders—such as standard-rated equipment paired with exempt services or zero-rated goods—require splitting the discount proportionally so you neither over-collect nor under-collect tax. Rounding each bucket's share independently can drop or invent a cent, causing the sum of discounted bases to disagree with Subtotal minus Discount. InvoiceDiplomat uses exact largest-remainder apportionment across tax buckets and blocks any over-limit discount before export.

Step-by-Step Guide

  1. 1. Enter each line with its true tax treatment and rate

    In the Invoice Generator, add your items and set Tax Treatment (Taxable, Exempt, Zero-Rated, or Reverse Charge) and Tax Rate (%) accurately on every row so InvoiceDiplomat builds distinct tax buckets.

  2. 2. Enter the invoice-level discount amount

    Type your flat discount in Document Discount. InvoiceDiplomat checks that the discount fits the currency's decimal precision and does not exceed the items subtotal; any over-limit discount triggers an inline field error and blocks export rather than silently clamping.

  3. 3. Inspect how the discount splits across tax buckets

    InvoiceDiplomat computes each bucket's exact proportional share of the document discount based on its pre-discount line subtotal. Whole cents are assigned first, and any leftover cents go to the buckets with the largest fractional remainders.

  4. 4. Verify that tax is calculated on post-discount bases

    Check the live preview totals. Each tax row reflects the bucket base after its allocated share of the document discount has been deducted, while the printed Subtotal minus Discount equals the exact sum of all post-discount bucket bases.

  5. 5. Export the reconciled PDF or local backup

    Click Issue & Download PDF once the top-to-bottom totals match your agreement. Both the PDF and any local JSON backup preserve the exact discount and bucket totals.

Worked Example: Apportioning a $0.01 document discount across $1.00 and $2.00 tax buckets

Input / Step Value
Bucket 1 base (e.g., Taxable @ 10%) $1.00 (100 cents)
Bucket 2 base (e.g., Exempt @ 0%) $2.00 (200 cents)
Combined items subtotal $3.00 (300 cents)
Document Discount $0.01 (1 cent)
Result Bucket 1 receives $0.00 discount ($1.00 net) | Bucket 2 receives $0.01 discount ($1.99 net) | Sum of allocated discounts = $0.01

Bucket 1 represents 100/300 (1/3) of the subtotal, giving an exact discount share of 0.333... cents. Bucket 2 represents 200/300 (2/3), giving 0.666... cents. Neither share reaches a full cent on its own, leaving 1 cent to distribute by largest remainder. Because 2/3 exceeds 1/3, Bucket 2 receives the penny. The post-discount bases ($1.00 + $1.99 = $2.99) match $3.00 − $0.01 exactly without losing or fabricating a cent.

Scope & Limitation: Jurisdictional VAT or sales-tax rules sometimes require a coupon or trade discount to attach strictly to one named promotional item rather than across the entire invoice. When a discount belongs to a single item only, apply it directly to that line or reduce that item's unit price instead of using Document Discount.