Message

Value MUST be part of code list 'Allowance reason codes (UNCL5189 subset)' or 'Charge reason code (UNCL7161)' or 'Reminder charge reason code'.

Context
/ubl:Invoice/cac:AllowanceCharge/cbc:AllowanceChargeReasonCode
Test
(some $code in $clUNCL5189 satisfies $code = normalize-space(text())) or (some $code in $clUNCL7161 satisfies $code = normalize-space(text())) or (some $code in $clREMINDER_CHARGE satisfies $code = normalize-space(text()))
Code lists
Allowance reason codes (UNCL5189 subset), Charge reason code (UNCL7161), Reminder charge reason code
Usage
/ ubl:Invoice / cac:AllowanceCharge / cbc:AllowanceChargeReasonCode