BR-DEC-02
XRechnung 2.0.0 · UBL
Original rule text
[BR-DEC-02]-The allowed maximum number of decimals for the Document level allowance base amount (BT-93) is 2.
string-length(substring-after(cbc:BaseAmount,'.'))<=2What this rule requires
The rule requires that the document level allowance base amount (BT-93) in cbc:BaseAmount (UBL) or ram:BasisAmount (CII) for an allowance charge with ChargeIndicator = false has at most two digits after the decimal point. A value fails if it contains a decimal point and more than two decimal digits; values with no decimal point or with one or two decimal digits are valid.
How to fix
Set the document level allowance base amount to a value with at most two decimal places. For example, 100 or 100.50 are acceptable, while 100.505 is not. In the invoice generator, round or format cbc:BaseAmount/ram:BasisAmount for document level allowances to a maximum of two decimal digits.
Guidance on this rule. The original text above is authoritative.