InvoiceValidator.eu

BR-42

fatalEN 16931EN 16931 business ruleCIIUBLBG-27BT-139BT-140

Each Invoice line allowance (BG-27) shall have an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140).

Why it fails

An invoice line allowance (BG-27) has neither a reason text (BT-139) nor a reason code (BT-140).

How to fix it

Add a reason to the line allowance; free text BT-139 is enough.

What the validator checks

CII — context $Invoice_line_allowances

(../ram:Reason) or (../ram:ReasonCode)

UBL — context $Invoice_line_allowances

exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)

Related rules

Part of BR — EN 16931 core business rules.

Check your own invoice against BR-42

…or paste the XML instead

Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.