Advance Payment Invoice, amounts and calculations

Dear support,
From our understanding on Advance payments :

  • there are two types of invoices ( an Advance payment invoice and a Final invoice )
  • the advance payment invoice type code is 386 and the final one is a normal invoice 388 with the exception that it includes advance payment invoice reference and prepaid amount adjustments ( additional invoice line etc. )

let’s say the customer wants to make an advance payment of 100 SAR towards a laptop which costs 1000 SAR

what are the amounts used and calculations done in the Advance Payment Invoice? (the case where the customer pays only 100 SAR)

/Invoice/cac:LegalMonetaryTotal
and
/Invoice/cac:InvoiceLine
/Invoice/cac:InvoiceLine/cbc:LineExtensionAmount
/Invoice/cac:InvoiceLine/cac:TaxTotal
/Invoice/cac:InvoiceLine/cac:Price/cbc:PriceAmount