\Einvoicing\Models\InvoiceTotals¶
$currency¶
Invoice currency code
public string $currency
$vatCurrency¶
VAT accounting currency code
public string|null $vatCurrency = null
$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
$customVatAmount¶
Total VAT amount in accounting currency
public float|null $customVatAmount = null
$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): \Einvoicing\Models\InvoiceTotals
Parameters
$inv
:\Einvoicing\Invoice
— Invoice instance
Returns
\Einvoicing\Models\InvoiceTotals
— Totals instance