HR-BR-34

Oznaka procesa (BT-23) MORA biti navedena. Koriste se vrijednosti P1-P12 ili P99:Oznaka kupca

In English The business process type (BT-23) MUST be given. The values are P1 to P12, or P99: followed by the buyer's own label.

error: the document is invalid

Why it fails

  • cbc:ProfileID is missing, or holds the Peppol process identifier (urn:fdc:peppol.eu:2017:poacc:billing:01:1.0).

How to fix it

Set cbc:ProfileID to the Croatian business process: P1 to P12, or P99: followed by the buyer's own label.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
ubl-creditnote:CreditNote | ubl-invoice:Invoice
Test
/*/cbc:ProfileID and (matches(normalize-space(/*/cbc:ProfileID), '^P([1-9]{1})$') or matches(normalize-space(/*/cbc:ProfileID), '^P([1]{1}[0-2]{1})$') or matches(normalize-space(/*/cbc:ProfileID), '^P99:'))

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)