Zum Inhalt springen

API reference / Quittio \ Core \ Data \ AllowanceCharge

LineAllowanceCharge

abstract readonly class in quittio/core

Quittio\Core\Data\AllowanceCharge\LineAllowanceCharge · Source

Common structure of invoice line allowances (BG-27) and charges (BG-28). Line allowances and charges have no VAT category of their own; they inherit the line's category.

Properties#

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

Methods#

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

__construct()#

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

isCharge()#

abstract public function isCharge(): bool

abstract

Returns
bool

reasonCodeValue()#

public function reasonCodeValue(): ?string
Returns
?string

with()#

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

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.