Skip to content

\Einvoicing\Models\InvoiceTotals

$currency

Totals currency code

public string $currency

$netAmount

Sum of all invoice line net amounts

public float $netAmount = 0

$allowancesAmount

Sum of all allowances on document level

public float $allowancesAmount = 0

$chargesAmount

Sum of all charges on document level

public float $chargesAmount = 0

$vatAmount

Total VAT amount for the invoice

public float $vatAmount = 0

$taxExclusiveAmount

Invoice total amount without VAT

public float $taxExclusiveAmount = 0

$taxInclusiveAmount

Invoice total amount with VAT

public float $taxInclusiveAmount = 0

$paidAmount

The sum of amounts which have been paid in advance

public float $paidAmount = 0

$roundingAmount

The amount to be added to the invoice total to round the amount to be paid

public float $roundingAmount = 0

$payableAmount

Amount due for payment

public float $payableAmount = 0

$vatBreakdown

Group of business terms providing information about VAT breakdown

public \Einvoicing\Models\VatBreakdown[] $vatBreakdown = []

fromInvoice()

Create instance from invoice

public static fromInvoice($inv: \Einvoicing\Invoice, $round: bool = true): \Einvoicing\Models\InvoiceTotals

Parameters

  • $inv: \Einvoicing\Invoice — Invoice instance
  • $round: bool — Whether to round values or not

Returns