fatalEN 16931EN 16931 business ruleCIIUBLBG-28BT-144BT-145
Each Invoice line charge shall have an Invoice line charge reason or an invoice line allowance reason code.
An invoice line charge (BG-28) has neither a reason text (BT-144) nor a reason code (BT-145).
Add a reason to the line charge; free text BT-144 is enough.
CII — context $Invoice_line_charges
(../ram:Reason) or (../ram:ReasonCode)
UBL — context $Invoice_line_charges
exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)
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.