Message

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

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