Address, Decimal, and Calculation Issues in Invoice Processing

Message
{"validationResults": ("infoMessages":
[{"type":"INFO",”code":"XSD_ZATCA_VALID", "category":"XSD
validation","message":"Complied with UBL 2.1 standards in line with ZATCA
specifications","status":"PASS"}],"warningMessages":
[{"type":"WARNING", "code": "BR-DEC-14","category":"EN_16931","message":"The
allowed maximum number of decimals for the Invoice total amount with VAT (BT-
112) is 2.","status":"WARNING"),{"type":"WARNING", "code":"BR-DEC-
18 ","category":"EN_16931",message":"The allowed maximum number of
decimals for the Amount due for payment (BT-115) is 2.","status":"WARNING"),
(type": "WARNING"," code":"BR-KSA-37","category":"KSA","message":"The seller
address building number must contain 4 digits.","status":"WARNING"},
{"type": "WARNING","code": "BR-KSA-51","category":"KSA","message":"The line
amount with VAT (KSA-12) must be Invoice line net amount (BT-131) + Line VAT
amount (KSA-11). ","status":"WARNING"}],"errorMessages":
[{"type":"ERROR", "code": "BR-CO-15", "category":"EN_16931", "message" :"Invoice
total amount with VAT (BT-112)
","status":"ERROR"}],"status":"ERROR"),"clearanceStatus":"NOT_CLEARED","clear
edinvoice":null}
Solution:
- Invoice Total Amount Decimals (BR-DEC-14):The total invoice amount with VAT (BT-112) is allowed a maximum of two decimal places. This warning suggests there may be more than two decimal places.
- Amount Due for Payment Decimals (BR-DEC-18):The amount due for payment (BT-115) should also be rounded to two decimal places. If more decimals are used, this warning will be triggered.
- Seller Address Building Number (BR-KSA-37):The seller's address must include a building number with exactly four digits. If it doesn't, this warning appears.
- Line Amount Calculation (BR-KSA-51):This warning appears because the invoice line net amount does not match the expected formula: Invoiced Quantity * (Item Net Price / Item Price Base Quantity) + Line Charges - Line Allowances. It suggests that the calculation may be incorrect or that some charges or allowances are not properly recorded