Zum Inhalt springen

API reference / Quittio \ Core \ Data \ AllowanceCharge

DocumentCharge

final readonly class in quittio/core · extends DocumentAllowanceCharge

Quittio\Core\Data\AllowanceCharge\DocumentCharge · Source

Document level charge (BG-21).

Properties#

PropertyTypeDescription
$amount readonly?Brick\Money\Money from DocumentAllowanceCharge
$baseAmount readonly?Brick\Money\Money from DocumentAllowanceCharge
$exemptionReason readonly?string from DocumentAllowanceCharge
$exemptionReasonCode readonlyVatExemptionReasonCode|RawCode|null from DocumentAllowanceCharge
$percent readonly?Brick\Math\BigDecimal from DocumentAllowanceCharge
$reason readonly?string from DocumentAllowanceCharge
$reasonCode readonlyBackedEnum|RawCode|null from DocumentAllowanceCharge
$vatCategory readonlyVatCategory from DocumentAllowanceCharge
$vatRate readonly?Brick\Math\BigDecimal from DocumentAllowanceCharge

Methods#

MethodDescription
->__construct()
->isCharge()
->reasonCodeValue()
->with()Returns a copy with the given properties replaced.

__construct()#

public function __construct(
    ?Money $amount,
    VatCategory $vatCategory,
    ?BigDecimal $vatRate = null,
    ?Money $baseAmount = null,
    ?BigDecimal $percent = null,
    ?string $reason = null,
    ChargeReasonCode|RawCode|null $reasonCode = null,
    ?string $exemptionReason = null,
    VatExemptionReasonCode|RawCode|null $exemptionReasonCode = null,
)
ParameterTypeDescription
$amount?Brick\Money\Money
$vatCategoryVatCategory
$vatRate?Brick\Math\BigDecimal = null
$baseAmount?Brick\Money\Money = null
$percent?Brick\Math\BigDecimal = null
$reason?string = null
$reasonCodeChargeReasonCode|RawCode|null = null
$exemptionReason?string = null
$exemptionReasonCodeVatExemptionReasonCode|RawCode|null = null

isCharge()#

public function isCharge(): bool
Returns
bool

reasonCodeValue()#

public function reasonCodeValue(): ?string

inherited from DocumentAllowanceCharge

Returns
?string

with()#

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

inherited from DocumentAllowanceCharge

Returns a copy with the given properties replaced.

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.