Peppol BIS Billing 3.0.17 · UBL

IS-R-001: If seller is icelandic then invoice type should be 380 or 381 — Ef seljandi er íslenskur…

Peppol BIS Billing 3.0.17 · UBL

warningcountry

Original rule text

[IS-R-001]-If seller is icelandic then invoice type should be 380 or 381 — Ef seljandi er íslenskur þá ætti gerð reiknings (BT-3) að vera sölureikningur (380) eða kreditreikningur (381).

Stored validation assertion
( ( not(contains(normalize-space(cbc:InvoiceTypeCode),' ')) and contains( ' 380 381 ',concat(' ',normalize-space(cbc:InvoiceTypeCode),' ') ) ) ) or ( ( not(contains(normalize-space(cbc:CreditNoteTypeCode),' ')) and contains( ' 380 381 ',concat(' ',normalize-space(cbc:CreditNoteTypeCode),' ') ) ) )

IS-R-001 is a warning rule in the country layer of Peppol BIS Billing 3.0.17 · UBL. An invoice that breaks it is flagged but not rejected. It refers to BT-3.

What this rule requires

This warning checks that an invoice or credit note whose supplier country is Iceland (IS) has a BT-3 invoice type code of either 380 (sales invoice, “sölureikningur”) or 381 (credit note, “kreditreikningur”). The UBL test accepts either cbc:InvoiceTypeCode or cbc:CreditNoteTypeCode containing exactly one of those two values as a single token. A document is reported when neither element has one of those allowed values.

How to fix

Check the supplier country in cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode. If it is IS, set the type code element for the document to 380 or 381 as appropriate: on an Invoice use cbc:InvoiceTypeCode, on a CreditNote use cbc:CreditNoteTypeCode. The rule also accepts the other element, but the document-specific one is standard.

Guidance on this rule. The original text above is authoritative.

Where to go next

IS-R-001 changed in 1 published Peppol BIS Billing UBL release comparison:

Validate an invoice against these rules · All release changes