GetInvoiceTotals (Opus Funktion)
Beschreibung¶
Gibt ein InvoiceTotalsObject zurück. Calculates the total amount, VAT amounts and per-VAT-rate breakdown for an invoice. Returns a structured object with all totals.
Name | Typ | Beschreibung |
|---|---|---|
TotalAmount | Gesamtbetrag der Rechnung inkl. MWST. | |
TotalVat | Totaler MWST Betrag | |
InclVat | 1 = diese Rechnung wird als inkl. MWST ausgegeben | |
VatIDs | [[integer]](../../standard-datentypen/integer.md) | MWST IDs der einzelnen Rechnungspositionen |
VatAmounts | [[float]](../../standard-datentypen/float.md) | MWST Beträge der einzelnen Rechnungspositionen |
BaseAmounts | [[float]](../../standard-datentypen/float.md) | Betrag der einzelnen Rechnungspositionen |
VatPercents | [[float]](../../standard-datentypen/float.md) | MWST Prozentwert der einzelnen Rechnungspositionen |
Argumente¶
Name | Typ | Beschreibung |
|---|---|---|
InvoiceID | ID of the invoice to calculate totals for |
Rückgabewert Object¶
invoice totals object with fields: TotalAmount (float), TotalVat (float), InclVat (integer), VatIDs (integer[]), VatAmounts (float[]), BaseAmounts (float[]), VatPercents (float[])
Beispiel¶
| Lo_Totals = GetInvoiceTotals(Lo_SQL1.i_SSF_InvoiceID[Li_i]); |
|---|