aligned-ibrp-057

Either both or neither Allowance base amount (ibt-093) and percentage (ibt-094) MUST be provided.

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
cac:AllowanceCharge[cbc:ChargeIndicator = false()][not(ancestor::cac:Price)]
Test
not(cbc:MultiplierFactorNumeric or cbc:BaseAmount) or (cbc:MultiplierFactorNumeric and cbc:BaseAmount)

Checked with PINT UAE Invoice, PINT UAE Credit Note

Context
cac:AllowanceCharge[cbc:ChargeIndicator = false()]
Test
not(cbc:MultiplierFactorNumeric or cbc:BaseAmount) or (cbc:MultiplierFactorNumeric and cbc:BaseAmount)

Checked with PINT A-NZ Invoice, PINT A-NZ Credit Note