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
$category
public
VatCategory
$category
Attributes
- #[Bt]
- 'BT-118'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:ApplicableTradeTax/ram:CategoryCode'
- #[Computed]
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:TaxSubtotal/cac:TaxCategory/cbc:ID'
$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'
$exemptionReasonCode
public
VatExemptionReasonCode|RawCode|null
$exemptionReasonCode
= null
Attributes
- #[Bt]
- 'BT-121'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:ApplicableTradeTax/ram:ExemptionReasonCode'
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:TaxSubtotal/cac:TaxCategory/cbc:TaxExemptionReasonCode'
$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'
$taxAmount
public
Money
$taxAmount
Attributes
- #[Bt]
- 'BT-117'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:ApplicableTradeTax/ram:CalculatedAmount'
- #[Computed]
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:TaxSubtotal/cbc:TaxAmount'
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>