Sum of line amounts is written with more than two decimal places
Reported asmore_than_two_decimalsmore than two decimal places
What is wrong
The cbc:LineExtensionAmount in the document totals block - BT-106, the sum of the invoice lines before document level allowances, charges and VAT - carries more than two characters after its first full stop, and ZATCA flags it under EN 16931 rule BR-DEC-09 as a warning, which does not by itself reject the document. The rule counts the characters after the first full stop in the element's text rather than judging the value, so a third digit fails even when it is a nought, and a value written with no full stop at all passes however large it is. An absent or empty element passes as well. This is one of six checks on cac:LegalMonetaryTotal: the allowance total (BT-107), the amount without VAT (BT-109), the amount with VAT (BT-112), the paid amount (BT-113) and the amount due for payment (BT-115) each have a two-decimal rule of their own, so a totals block serialised at one precision setting usually draws several of these at once. Note also that the element with the same name on an invoice line is a different figure and a different rule, BR-DEC-23.
What to check in your ERP
A long figure here rarely means this field was formatted wrongly - it means the sum was taken over line amounts that carry more precision internally than they print. Round each line net amount to two decimals first, then add the rounded values and write that total here. Summing first and rounding afterwards gives a figure that can differ from the printed lines by a halalah or two, and BR-CO-10 requires this element to equal the sum of the cbc:LineExtensionAmount values the lines actually carry, so the two rules have to be satisfied by the same rounding order. Look at the order of operations in your totals routine, and at whether a report writer formats the lines for display while the XML export reads the unformatted ones.