PintLint

Rules / IBR-057

IBR-057 error

Each Deliver to address

Each Deliver to address (ibg-15) must contain a Deliver to country code (ibt-080).

Fails

<cac:Address>
  <!-- cbc:IdentificationCode is missing -->
</cac:Address>

Fix

Add cbc:IdentificationCode inside cac:Address.

Schematron
Context
cac:Delivery/cac:DeliveryLocation/cac:Address
Test
exists(cac:Country/cbc:IdentificationCode)

Official text: Each Deliver to address (ibg-15) MUST contain a Deliver to country code (ibt-080).

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

Check an invoice