Quittio 0.3 API

VatBreakdown
in package
uses Immutable

Read onlyYes
FinalYes

VAT breakdown (BG-23), one entry per combination of VAT category and rate.

Table of Contents

Properties

$category  : VatCategory
$exemptionReason  : string|null
$exemptionReasonCode  : VatExemptionReasonCode|RawCode|null
$rate  : BigDecimal|null
$taxableAmount  : Money
$taxAmount  : Money

Methods

__construct()  : mixed
with()  : static
Returns a copy with the given properties replaced.

Properties

$exemptionReason

public string|null $exemptionReason = null
Attributes
#[Bt]
'BT-120'
#[Cardinality]
'0..1'
#[Cii]
'ram:ApplicableTradeTax/ram:ExemptionReason'
#[Level]
ProfileLevel::BasicWl
#[Ubl]
'cac:TaxSubtotal/cac:TaxCategory/cbc:TaxExemptionReason'

$rate

public BigDecimal|null $rate = null
Attributes
#[Bt]
'BT-119'
#[Cardinality]
'0..1'
#[Cii]
'ram:ApplicableTradeTax/ram:RateApplicablePercent'
#[Computed]
#[Level]
ProfileLevel::BasicWl
#[Ubl]
'cac:TaxSubtotal/cac:TaxCategory/cbc:Percent'

$taxableAmount

public Money $taxableAmount
Attributes
#[Bt]
'BT-116'
#[Cardinality]
'1'
#[Cii]
'ram:ApplicableTradeTax/ram:BasisAmount'
#[Computed]
#[Level]
ProfileLevel::BasicWl
#[Ubl]
'cac:TaxSubtotal/cbc:TaxableAmount'

Methods

__construct()

public __construct(Money $taxableAmount, Money $taxAmount, VatCategory $category[, BigDecimal|null $rate = null ][, string|null $exemptionReason = null ][, VatExemptionReasonCode|RawCode|null $exemptionReasonCode = null ]) : mixed
Parameters
$taxableAmount : Money
$taxAmount : Money
$category : VatCategory
$rate : BigDecimal|null = null
$exemptionReason : string|null = null
$exemptionReasonCode : VatExemptionReasonCode|RawCode|null = null

with()

Returns a copy with the given properties replaced.

public with(array<string, mixed> $changes) : static
Parameters
$changes : array<string, mixed>
Return values
static
On this page

Search results