InvoiceValidator.eu

BR-CO-07

fatalEN 16931EN 16931 business ruleCIIUBLBT-139BT-140

Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason.

Why it fails

An invoice line allowance has a reason text (BT-139) and a reason code (BT-140) that do not agree.

How to fix it

Align the text with the UNTDID 5189 code, or keep only one.

What the validator checks

CII — context $Invoice_line_allowances

true()

UBL — context $Invoice_line_allowances

true()

Related rules

Part of BR-CO — Calculation rules.

Check your own invoice against BR-CO-07

…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.