ScheduledInvoiceType
Table of Contents
Constants
-
KEY_COUPON
= "coupon"
-
KEY_CREDIT
= "credit"
-
KEY_CREDIT_PROMO
= "credit_promo"
-
KEY_CREDIT_REFUND
= "credit_refund"
-
KEY_DISCOUNT_ON_INVOICE
= "discount_on_invoice"
-
KEY_ON_INVOICE
= "on_invoice"
-
KEY_ON_ITEM
= "on_item"
-
KEY_SUBTOTAL
= "subtotal"
-
KEY_TOTAL
= "total"
-
KEY_UNIT_PRICE
= "unit_price"
Properties
-
$coupons
: array<string|int, Coupon>
-
$vat
: array<string|int, mixed>
-
$discount
: mixed
-
$gross
: mixed
-
$id
: mixed
-
$net
: mixed
-
$period
: mixed
-
$price
: mixed
Methods
-
__construct()
: mixed
-
getCoupons()
: array<string|int, Coupon>
-
getDiscountAmountFor()
: mixed
-
getGross()
: mixed
-
getGrossFor()
: mixed
-
getGrossForAmount()
: mixed
-
getId()
: mixed
-
getListPriceFor()
: mixed
-
getNet()
: mixed
-
getNetFor()
: mixed
-
getNetVatGrossArrayFor()
: mixed
-
getPeriod()
: int|null
-
getPrice()
: mixed
-
getVat()
: mixed
-
getVatFor()
: mixed
-
getVatForAmount()
: mixed
-
setCoupons()
: self
-
setGrossFor()
: mixed
-
setId()
: void
-
setNetAndVatFor()
: mixed
-
setNetFor()
: mixed
-
setVatFor()
: mixed
-
getRoundedPercentage()
: mixed
-
hasVat()
: mixed
KEY_COUPON
public
mixed
KEY_COUPON
= "coupon"
KEY_CREDIT
public
mixed
KEY_CREDIT
= "credit"
public
mixed
KEY_CREDIT_PROMO
= "credit_promo"
KEY_CREDIT_REFUND
public
mixed
KEY_CREDIT_REFUND
= "credit_refund"
KEY_DISCOUNT_ON_INVOICE
public
mixed
KEY_DISCOUNT_ON_INVOICE
= "discount_on_invoice"
KEY_ON_INVOICE
public
mixed
KEY_ON_INVOICE
= "on_invoice"
KEY_ON_ITEM
public
mixed
KEY_ON_ITEM
= "on_item"
KEY_SUBTOTAL
public
mixed
KEY_SUBTOTAL
= "subtotal"
KEY_TOTAL
public
mixed
KEY_TOTAL
= "total"
KEY_UNIT_PRICE
public
mixed
KEY_UNIT_PRICE
= "unit_price"
$coupons
protected
array<string|int, Coupon>
$coupons
= []
$vat
protected
array<string|int, mixed>
$vat
= []
$discount
private
mixed
$discount
= []
$gross
private
mixed
$gross
$id
private
mixed
$id
$net
private
mixed
$net
$period
private
mixed
$period
$price
private
mixed
$price
__construct()
public
__construct(mixed $id, mixed $price, mixed $period) : mixed
Parameters
-
$id
: mixed
-
-
$price
: mixed
-
-
$period
: mixed
-
getCoupons()
public
getCoupons() : array<string|int, Coupon>
Return values
array<string|int, Coupon>
getDiscountAmountFor()
public
getDiscountAmountFor([mixed $element = null ][, mixed $source = null ]) : mixed
Parameters
-
$element
: mixed
= null
-
-
$source
: mixed
= null
-
getGross()
public
getGross() : mixed
getGrossFor()
public
getGrossFor(mixed $key) : mixed
Parameters
-
$key
: mixed
-
getGrossForAmount()
public
getGrossForAmount(mixed $amount[, mixed $rate = null ]) : mixed
Parameters
-
$amount
: mixed
-
-
$rate
: mixed
= null
-
getId()
public
getId() : mixed
getListPriceFor()
public
getListPriceFor(mixed $key) : mixed
Parameters
-
$key
: mixed
-
getNet()
public
getNet() : mixed
getNetFor()
public
getNetFor(mixed $key) : mixed
Parameters
-
$key
: mixed
-
getNetVatGrossArrayFor()
public
final getNetVatGrossArrayFor(string $key) : mixed
Parameters
-
$key
: string
-
getPeriod()
public
getPeriod() : int|null
getPrice()
public
getPrice() : mixed
getVat()
public
getVat() : mixed
getVatFor()
public
getVatFor(mixed $key) : mixed
Parameters
-
$key
: mixed
-
getVatForAmount()
public
getVatForAmount(mixed $amount[, mixed $rate = null ]) : mixed
Parameters
-
$amount
: mixed
-
-
$rate
: mixed
= null
-
setCoupons()
public
setCoupons(array<string|int, Coupon> $coupons) : self
Parameters
-
$coupons
: array<string|int, Coupon>
-
setGrossFor()
public
setGrossFor(mixed $key, mixed $amount) : mixed
Parameters
-
$key
: mixed
-
-
$amount
: mixed
-
setId()
public
setId(mixed $id) : void
Parameters
-
$id
: mixed
-
setNetAndVatFor()
public
setNetAndVatFor(mixed $key, mixed $netAmount, mixed $vatAmount) : mixed
Parameters
-
$key
: mixed
-
-
$netAmount
: mixed
-
-
$vatAmount
: mixed
-
setNetFor()
public
setNetFor(mixed $key, mixed $amount) : mixed
Parameters
-
$key
: mixed
-
-
$amount
: mixed
-
setVatFor()
public
setVatFor(mixed $key, mixed $amount) : mixed
Parameters
-
$key
: mixed
-
-
$amount
: mixed
-
getRoundedPercentage()
private
getRoundedPercentage(int $base, float $percentage) : mixed
Parameters
-
$base
: int
-
-
$percentage
: float
-
hasVat()
private
hasVat() : mixed