With a discount, ERPNext lowers net_total but keeps each tax row's
tax_amount at the pre-discount value. The document template printed
that value next to the gross discount, so the lines did not add up and
the VAT shown was too high (offer SAL-QTN-2026-00001: 212.61 printed,
191.60 charged). The totals now read Zwischensumme, Rabatt (net),
Summe netto, tax after discount, Gesamtbetrag.
Offers and order confirmations also name the debit term from the
payment term ("Einzug 21 Tage nach Rechnungsdatum").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>