UBL-CR-638: A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-CR-638]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge AccountingCostCode
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:AccountingCostCode)UBL-CR-638 is a warning rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is flagged but not rejected.
What this rule requires
This rule applies to both ubl:Invoice and cn:CreditNote. It requires that no line-level price allowance or charge includes an cbc:AccountingCostCode element. The test checks that cac:InvoiceLine or cac:CreditNoteLine does not contain cac:Price/cac:AllowanceCharge/cbc:AccountingCostCode. Because the severity is warning, the document is not rejected, but the validator reports it as an advisory issue.
How to fix
Remove cbc:AccountingCostCode from any cac:AllowanceCharge inside cac:Price in the invoice lines or credit note lines. If it is generated by the system, configure the system not to output this element in that location.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to UBL-CR-638.
Validate an invoice against these rules · All release changes