Documentation

ScheduledInvoiceType
in package

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

Constants

Properties

Methods

__construct()

public __construct(mixed $id, mixed $price, mixed $period) : mixed
Parameters
$id : mixed
$price : mixed
$period : mixed

getDiscountAmountFor()

public getDiscountAmountFor([mixed $element = null ][, mixed $source = null ]) : mixed
Parameters
$element : mixed = null
$source : mixed = null

getGrossForAmount()

public getGrossForAmount(mixed $amount[, mixed $rate = null ]) : mixed
Parameters
$amount : mixed
$rate : mixed = null

getNetVatGrossArrayFor()

public final getNetVatGrossArrayFor(string $key) : mixed
Parameters
$key : string

getVatForAmount()

public getVatForAmount(mixed $amount[, mixed $rate = null ]) : mixed
Parameters
$amount : mixed
$rate : mixed = null

setGrossFor()

public setGrossFor(mixed $key, mixed $amount) : mixed
Parameters
$key : mixed
$amount : 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

        
On this page

Search results