Also called BG-20, BG-21, discount, surcharge
An allowance is a deduction from the invoice, such as a discount, and a charge is an addition, such as freight or packaging. EN 16931 models both at document level and at line level, and each one requires a reason and its own VAT treatment.
A discount written into a note is invisible to structured processing. Modelled properly it is a BG-20 allowance with an amount, a reason and a VAT category, and it participates in the totals.
That last part is what catches people. An allowance changes the taxable amount, so it changes the VAT breakdown, so the arithmetic rules fire if you subtract it from one total and not the other.
A line level allowance reduces that line. A document level allowance applies to the invoice and needs its own VAT category, because the standard cannot infer which rate a discount across mixed rate lines belongs to.
Getting that wrong on a mixed rate invoice produces failures in the VAT category family rather than where the discount was entered, which makes it hard to trace back.
Where a mishandled allowance usually shows up, with the cause and the fix.