The maximum number of decimal places allowed for the element "Third party payment amount" (BT-DEX-002) is 2.
The value of cbc:PaidAmount contains more than two characters after the decimal point. The rule limits the number of decimal places to two.
The third-party payment amount must be stated with no more than two decimal places so that its precision follows the required format.
The value in cbc:PaidAmount has too many decimal places. Adjust the amount to no more than two digits after the decimal point.
- Locate the amount in
cbc:PaidAmountwithincac:PrepaidPayment. - Limit the characters after the decimal point to no more than two.
- Regenerate the invoice and check it again.
<cac:PrepaidPayment> <cbc:PaidAmount>10.123</cbc:PaidAmount> </cac:PrepaidPayment>
<cac:PrepaidPayment> <cbc:PaidAmount>10.12</cbc:PaidAmount> </cac:PrepaidPayment>
Technical details
The test counts the characters after the decimal point in cbc:PaidAmount and allows at most two. It checks the string following the point.
The rule applies to the numeric value of cbc:PaidAmount within cac:PrepaidPayment.
rule/@context)assert/@test)