PintLint

Rules / IBR-SR-49

IBR-SR-49 error

Value tax point date must occur maximum once

Value tax point date (ibt-007) must occur maximum once.

Fails

<Invoice>
  <cbc:DescriptionCode>…</cbc:DescriptionCode>
  <cbc:DescriptionCode>…</cbc:DescriptionCode>
</Invoice>

Fix

Keep a single cbc:DescriptionCode here and delete the duplicates. If both values matter, one of them belongs in a different field.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
(count(cac:InvoicePeriod/cbc:DescriptionCode) <=1)

Official text: Value tax point date (ibt-007) MUST occur maximum once

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice