Skip to content

API reference / Quittio \ Core \ Data \ AllowanceCharge

LineAllowance

final readonly class in quittio/core · extends LineAllowanceCharge

Quittio\Core\Data\AllowanceCharge\LineAllowance · Source

Invoice line allowance (BG-27).

Properties#

PropertyTypeDescription
$amount readonly?Brick\Money\Money from LineAllowanceCharge
$baseAmount readonly?Brick\Money\Money from LineAllowanceCharge
$percent readonly?Brick\Math\BigDecimal from LineAllowanceCharge
$reason readonly?string from LineAllowanceCharge
$reasonCode readonlyBackedEnum|RawCode|null from LineAllowanceCharge

Methods#

MethodDescription
->__construct()
->isCharge()
->reasonCodeValue()
->with()

__construct()#

public function __construct(
    ?Money $amount,
    ?Money $baseAmount = null,
    ?BigDecimal $percent = null,
    ?string $reason = null,
    AllowanceReasonCode|RawCode|null $reasonCode = null,
)
ParameterTypeDescription
$amount?Brick\Money\Money
$baseAmount?Brick\Money\Money = null
$percent?Brick\Math\BigDecimal = null
$reason?string = null
$reasonCodeAllowanceReasonCode|RawCode|null = null

isCharge()#

public function isCharge(): bool
Returns
bool

reasonCodeValue()#

public function reasonCodeValue(): ?string

inherited from LineAllowanceCharge

Returns
?string

with()#

public function with(array<string, mixed> $changes): static

inherited from LineAllowanceCharge

ParameterTypeDescription
$changesarray<string, mixed>
Returns
static

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.