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)
@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
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