BR-RO-L1018
Numarul maxim permis de caractere pentru Motivul taxei suplimentare la nivelul documentului (BT-104) este 100. #The allowed maximum number of characters for the Document level charge reason (BT-104) is 100.
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.
[BR-RO-L100] Numarul maxim permis de caractere pentru Motivul taxei suplimentare la nivelul documentului (BT-104) este 100. #The allowed maximum number of characters for the Document level charge reason (BT-104) is 100.
/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /ubl:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
string-length(normalize-space(cbc:AllowanceChargeReasonCode)) <= 100
Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)