Peppol BIS Billing 3.0.21 · UBL

BR-IC-12: In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is…

Peppol BIS Billing 3.0.21 · UBL

fatalbusiness

Original rule text

[BR-IC-12]-In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Deliver to country code (BT-80) shall not be blank.

Stored validation assertion
(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K']) and (string-length(cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode) >1)) or (not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K']))

BR-IC-12 is a fatal rule in the business layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected. It refers to BG-23, BT-118, BT-80.

What this rule requires

The rule applies when a VAT breakdown (BG-23) has VAT category code BT-118 = K ("Intra-community supply") under VAT scheme VAT. In UBL, the invoice or credit note must then have a non-blank Deliver to country code BT-80 in cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode; the test enforces this as a string length greater than 1. If no such K VAT category exists, the rule passes. In CII, the test only requires that ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID is present; it does not check for a non-empty value, so the non-blank requirement from the message is not fully enforced by the shown CII test. Severity is fatal, so documents failing the stated test are rejected.

How to fix

For UBL, ensure cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode contains a country code value longer than one character, or correct the VAT category K if it should not be intra-community supply. For CII, ensure ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID is present and, to meet the intended non-blank rule, give it a non-empty country code value; if the transaction is not intra-community supply, adjust ram:CategoryCode/ram:TypeCode accordingly.

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 BR-IC-12.

Validate an invoice against these rules · All release changes