Warning Message - Invoice line net amount (BT-131) must equal (Invoiced quantity (BT-129) * (Item net price (BT-146) / item price base quantity (BT-149))) + Sum of invoice line charge amount (BT-141) - Sum of invoice line allowance amount (BT-136)

Dear ZATCA Team / @Ankit_Tiwari @Embro,

We are receiving a warning message on the Standard Invoice when we have Allowance on document level. This is some thing related to Line Extension Amount in Invoice Lines but we have checked everything, seems amounts are correct. Can you please guide us.

I am attaching the warning message and XML File Content for your reference.
Appreciate your help in this.

Invoice line net amount (BT-131) must equal (Invoiced quantity (BT-129) * (Item net price (BT-146) / item price base quantity (BT-149))) + Sum of invoice line charge amount (BT-141) - Sum of invoice line allowance amount (BT-136)

1- Allowance charge for discount Is FALSE in the invoice Lines (Not True)
2- remove the line of allowance “in the summary”


and change the first value to 2490

Dear @Embro,

After applying the changes in XML File. Now, I am getting this error message. and that warning is still there.

Attaching the new XML File Content as per you suggestion

Note that I am not ZATCA team, I am user like you

Dear @Embro I thought you are from ZATCA Team.

@Ankit_Tiwari Can you please help us here. In this case!

No problem, its my pleasure to help you

@Roohul-Amin-Seidor remove the value from ‘base quantity’ tag. change the allowance charge indicator to ‘false’, correct the calculations by referring to sample XMLs in SDK.

@Ankit_Tiwari After Applying the changes, I am still getting the same issue. Even Though the calculations are correct. Please what shall we do in this case now ?

Hi @Ankit_Tiwari
We getting this warning message in all invoices which has discount on line levels , we review the samples on sdk 3.3.3
I notice you did the cac:AllowanceCharge for invoice lines before the cac:LegalMonetaryTotal

This image captured from Samples [Samples/Simplified/Invoice/Simplified_Invoice.xml]

@Ankit_Tiwari We are waiting for you feedback on this! Can you please guide Thanks!

@Ankit_Tiwari Any Update ? Please guide

Dear @SlaDev when the AllowanceCharge tags appear above LegalMonetaryTotals that represent the Document Level Discounts (this is independent of the line level discounts). Please note that once you provide discounts at line level, there is no need to provide a sub-total or aggregation of line level discount amount again anywhere else in XML. Tags for the Allowance Charge at Document Level is to be used only if there is a Document Level discount. This tag is not to repeat sub-total or aggregated line level discounts.

@Roohul-Amin-Seidor , please share sample XMLs where you face challenge in fixing mismatch through support emails E-invoicing@zatca.gov.sa or sp_support@zatca.gov.sa

1 Like