Message

Allowance/charge percentage MUST be provided when allowance/charge base amount is provided.

Context
ubl-invoice:Invoice/cac:AllowanceCharge[not(cbc:MultiplierFactorNumeric) and cbc:BaseAmount] | ubl-invoice:Invoice/cac:InvoiceLine/cac:AllowanceCharge[not(cbc:MultiplierFactorNumeric) and cbc:BaseAmount] | ubl-creditnote:CreditNote/cac:AllowanceCharge[not(cbc:MultiplierFactorNumeric) and cbc:BaseAmount] | ubl-creditnote:CreditNote/cac:CreditNoteLine/cac:AllowanceCharge[not(cbc:MultiplierFactorNumeric) and cbc:BaseAmount]
Test
false()
Usage
/ ubl:Invoice / cac:AllowanceCharge / cbc:MultiplierFactorNumeric
/ ubl:Invoice / cac:InvoiceLine / cac:AllowanceCharge / cbc:MultiplierFactorNumeric
/ ubl:CreditNote / cac:AllowanceCharge / cbc:MultiplierFactorNumeric
/ ubl:CreditNote / cac:CreditNoteLine / cac:AllowanceCharge / cbc:MultiplierFactorNumeric