PintLint

Rules / IBR-049

IBR-049 error

A Payment instruction

A Payment instruction (ibg-16) must specify the Payment means type code (ibt-081).

Fails

<cac:PaymentMeans>
  <!-- cbc:PaymentMeansCode is missing -->
</cac:PaymentMeans>

Fix

Add cbc:PaymentMeansCode inside cac:PaymentMeans.

Schematron
Context
cac:PaymentMeans
Test
exists(cbc:PaymentMeansCode)

Official text: A Payment instruction (ibg-16) MUST specify the Payment means type code (ibt-081).

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

Check an invoice