TaxRuleRow
in package
Read onlyYes
FinalYes
One decided row of the rule table (output of {@see \App\UI\Api\System\Models\Helpers\TaxRuleTable::decide()}).
No rate here — the rule only says whether VAT is charged; the manager looks the rate up.
Table of Contents
Properties
- $chargeVat : bool
- $code : TaxTreatmentCode
- $countsDomesticTurnover : bool
- $countsEuB2cThreshold : bool
- $flags : array<string|int, mixed>
- $noteKey : string|null
- Translation key of the invoice clause (`tax.note.<CODE>[.<status>]`), null = no clause.
- $requireCustomerVatId : bool
- $requireSellerVatId : bool
- $row : int
- Row number of the rule table (trace for tests, harness and logs).
- $summaryReport : bool
- $summaryReportCode : string|null
- '3' services, '0' goods, null = none.
Methods
- __construct() : mixed
Properties
$chargeVat
public
bool
$chargeVat
$code
public
TaxTreatmentCode
$code
$countsDomesticTurnover
public
bool
$countsDomesticTurnover
= false
$countsEuB2cThreshold
public
bool
$countsEuB2cThreshold
= false
$flags
public
array<string|int, mixed>
$flags
= []
$noteKey
Translation key of the invoice clause (`tax.note.<CODE>[.<status>]`), null = no clause.
public
string|null
$noteKey
= null
$requireCustomerVatId
public
bool
$requireCustomerVatId
= false
$requireSellerVatId
public
bool
$requireSellerVatId
= false
$row
Row number of the rule table (trace for tests, harness and logs).
public
int
$row
$summaryReport
public
bool
$summaryReport
= false
$summaryReportCode
'3' services, '0' goods, null = none.
public
string|null
$summaryReportCode
= null
Methods
__construct()
public
__construct(int $row, TaxTreatmentCode $code, bool $chargeVat[, bool $summaryReport = false ][, string|null $summaryReportCode = null ][, bool $countsEuB2cThreshold = false ][, bool $countsDomesticTurnover = false ][, bool $requireCustomerVatId = false ][, bool $requireSellerVatId = false ][, array<int, TaxFlag> $flags = [] ][, string|null $noteKey = null ]) : mixed
Parameters
- $row : int
- $code : TaxTreatmentCode
- $chargeVat : bool
- $summaryReport : bool = false
- $summaryReportCode : string|null = null
- $countsEuB2cThreshold : bool = false
- $countsDomesticTurnover : bool = false
- $requireCustomerVatId : bool = false
- $requireSellerVatId : bool = false
- $flags : array<int, TaxFlag> = []
- $noteKey : string|null = null