BR-CO-06-SG

Document level charge reason code (IBT-105) and Document level charge reason (IBT-104) shall indicate the same type of charge.

error: the document is invalid

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:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
Test
true()

Checked with PINT SG Invoice, PINT SG Credit Note