CoolCMS API

TaxLineResult
in package

Read onlyYes
FinalYes

Resolved line: treatment + base. The engine does no line arithmetic except the gross price split: `grossPrice` line โ†’ `base = money(gross รท (1 + rate))`, `vat = gross โˆ’ base`; base line โ†’ `base = amount`, `vat = null` (the consumer multiplies by the PD rounding rules).

Table of Contents

Properties

$base  : numeric-string
$error  : TaxError|null
$index  : int
$line  : TaxLine
$treatment  : TaxTreatment|null
Null only when the supply kind is unknown (error SUPPLY_KIND_MISSING).
$vat  : numeric-string|null

Methods

__construct()  : mixed
toArray()  : array<string, mixed>

Properties

Methods

toArray()

public toArray() : array<string, mixed>
Return values
array<string, mixed>
On this page

Search results