PintLint

Rules / IBR-093

IBR-093 error

If there is a paid amount must exist

If there is a paid amount (ibt-180) then total paid amount (ibt-113) must exist.

Fails

<cac:PrepaidPayment>
  <!-- cbc:PrepaidAmount is missing -->
</cac:PrepaidPayment>

Fix

Add cbc:PrepaidAmount inside cac:PrepaidPayment.

Schematron
Context
cac:PrepaidPayment[1]
Test
exists(../cac:LegalMonetaryTotal/cbc:PrepaidAmount)

Official text: If there is a paid amount (ibt-180) then total paid amount (ibt-113) MUST exist.

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

Check an invoice