I’ve been trying to report an invoice involving prepaid amount calculations, following all the steps as mentioned in the Zatca Help Manual (link) (ref Page: 21)
I’m facing the error as attached:
The Pre-Paid amount (BT-113) must be equal to the sum total of the Prepayment VAT category Taxable Amount (KSA-31) and the Prepayment VAT Category Tax Amount (KSA-32).
Following the sample payload I’m assuming the values are correct, if anyone could please validate the XML
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"><cbc:ProfileID>reporting:1.0</cbc:ProfileID><cbc:ID>Invo-00022</cbc:ID><cbc:UUID>ab2cbc6e-87de-4c3f-bd2c-22c6541d9e06</cbc:UUID><cbc:IssueDate>2024-09-23</cbc:IssueDate><cbc:IssueTime>06:30:00</cbc:IssueTime><cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode><cbc:Note languageID="en"></cbc:Note><cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode><cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode><cac:AdditionalDocumentReference><cbc:ID>ICV</cbc:ID><cbc:UUID>23</cbc:UUID></cac:AdditionalDocumentReference><cac:AdditionalDocumentReference><cbc:ID>PIH</cbc:ID><cac:Attachment><cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">FRrtvjAL9+GHoouBevARnFIA4mkP4UBEuLOx3ma8rbE=</cbc:EmbeddedDocumentBinaryObject></cac:Attachment></cac:AdditionalDocumentReference><cac:AccountingSupplierParty><cac:Party><cac:PartyIdentification><cbc:ID schemeID="CRN">311466958200003</cbc:ID></cac:PartyIdentification><cac:PostalAddress><cbc:StreetName>4419 Western Ring Branch Rd</cbc:StreetName><cbc:AdditionalStreetName>4419 Western Ring Branch Rd, 4419 Western Ring Branch Rd, Riyadh, Saudi Arabia, 12334</cbc:AdditionalStreetName><cbc:BuildingNumber>4419 Western Ring Branch Rd</cbc:BuildingNumber><cbc:CitySubdivisionName>Riyadh</cbc:CitySubdivisionName><cbc:CityName>Riyadh</cbc:CityName><cbc:PostalZone>12334</cbc:PostalZone><cbc:CountrySubentity>Saudi Arabia</cbc:CountrySubentity><cac:Country><cbc:IdentificationCode>SA</cbc:IdentificationCode></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cbc:CompanyID>311466958200003</cbc:CompanyID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>Textile Mix Trading Company</cbc:RegistrationName></cac:PartyLegalEntity></cac:Party></cac:AccountingSupplierParty><cac:AccountingCustomerParty><cac:Party><cac:PostalAddress><cbc:StreetName>112</cbc:StreetName><cbc:AdditionalStreetName>Doha Al Shamaliah, Al Dawhah Ash Shamaliyah, 112, Dhahran, Saudi Arabia, 41111</cbc:AdditionalStreetName><cbc:BuildingNumber>Doha Al Shamaliah, Al Dawhah Ash Shamaliyah</cbc:BuildingNumber><cbc:CitySubdivisionName>Dhahran</cbc:CitySubdivisionName><cbc:CityName>Dhahran</cbc:CityName><cbc:PostalZone>41111</cbc:PostalZone><cbc:CountrySubentity>Saudi Arabia</cbc:CountrySubentity><cac:Country><cbc:IdentificationCode>SA</cbc:IdentificationCode></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>Demo User</cbc:RegistrationName></cac:PartyLegalEntity></cac:Party></cac:AccountingCustomerParty><cac:Delivery><cbc:ActualDeliveryDate>2024-09-25</cbc:ActualDeliveryDate><cbc:LatestDeliveryDate>2024-09-25</cbc:LatestDeliveryDate></cac:Delivery><cac:PaymentMeans><cbc:PaymentMeansCode>30</cbc:PaymentMeansCode></cac:PaymentMeans><cac:AllowanceCharge><cbc:ChargeIndicator>false</cbc:ChargeIndicator><cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason><cbc:Amount currencyID="SAR">0</cbc:Amount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15.00</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:AllowanceCharge><cac:AllowanceCharge><cbc:ChargeIndicator>true</cbc:ChargeIndicator><cbc:AllowanceChargeReason>Shipping and Handling</cbc:AllowanceChargeReason><cbc:Amount currencyID="SAR">10</cbc:Amount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:AllowanceCharge><cac:AllowanceCharge><cbc:ChargeIndicator>true</cbc:ChargeIndicator><cbc:AllowanceChargeReason>cod_fee</cbc:AllowanceChargeReason><cbc:Amount currencyID="SAR">10</cbc:Amount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:AllowanceCharge><cac:TaxTotal><cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount></cac:TaxTotal><cac:TaxTotal><cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="SAR">110</cbc:TaxableAmount><cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal><cac:LegalMonetaryTotal><cbc:LineExtensionAmount currencyID="SAR">90</cbc:LineExtensionAmount><cbc:TaxExclusiveAmount currencyID="SAR">110</cbc:TaxExclusiveAmount><cbc:TaxInclusiveAmount currencyID="SAR">126.5</cbc:TaxInclusiveAmount><cbc:AllowanceTotalAmount currencyID="SAR">0</cbc:AllowanceTotalAmount><cbc:ChargeTotalAmount currencyID="SAR">20</cbc:ChargeTotalAmount><cbc:PrepaidAmount currencyID="SAR">126.5</cbc:PrepaidAmount><cbc:PayableAmount currencyID="SAR">0.0</cbc:PayableAmount></cac:LegalMonetaryTotal><cac:InvoiceLine><cbc:ID>1</cbc:ID><cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID="SAR">90</cbc:LineExtensionAmount><cac:TaxTotal><cbc:TaxAmount currencyID="SAR">13.5</cbc:TaxAmount><cbc:RoundingAmount currencyID="SAR">103.5</cbc:RoundingAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="SAR">90</cbc:TaxableAmount><cbc:TaxAmount currencyID="SAR">13.5</cbc:TaxAmount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal><cac:Item><cbc:Name>IdeaPad Slim 3 Gen 8, 39.62cms - AMD R5 (Arctic Grey)</cbc:Name><cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory></cac:Item><cac:Price><cbc:PriceAmount currencyID="SAR">90</cbc:PriceAmount><cac:AllowanceCharge><cbc:ChargeIndicator>false</cbc:ChargeIndicator><cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason><cbc:Amount currencyID="SAR">10</cbc:Amount></cac:AllowanceCharge></cac:Price></cac:InvoiceLine><cac:InvoiceLine><cbc:ID>2</cbc:ID><cbc:InvoicedQuantity unitCode="PCE">0.0</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID="SAR">0.0</cbc:LineExtensionAmount><cac:DocumentReference><cbc:ID>Invo-00022</cbc:ID><cbc:IssueDate>2024-09-23</cbc:IssueDate><cbc:IssueTime>06:30:00</cbc:IssueTime><cbc:DocumentTypeCode>386</cbc:DocumentTypeCode></cac:DocumentReference><cac:TaxTotal><cbc:TaxAmount currencyID="SAR">0.0</cbc:TaxAmount><cbc:RoundingAmount currencyID="SAR">0.0</cbc:RoundingAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="SAR">110</cbc:TaxableAmount><cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal><cac:Item><cbc:Name>Prepayment adjustment</cbc:Name><cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>15.00</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory></cac:Item><cac:Price><cbc:PriceAmount currencyID="SAR">0.0</cbc:PriceAmount></cac:Price></cac:InvoiceLine></Invoice>