CalculationPolicy
in package
Read onlyYes
FinalYes
Decisions of the calculator that are not fixed by EN 16931. The policy is configuration of the run and not stored with the invoice: the same data calculated under another policy can give other amounts.
Table of Contents
Properties
Methods
- __construct() : mixed
- fromArray() : self
- From the configuration key declared_amounts (keep, recalculate or reject).
Properties
$declaredAmounts
public
DeclaredAmountsMode
$declaredAmounts
= DeclaredAmountsMode::Keep
Methods
__construct()
public
__construct([DeclaredAmountsMode $declaredAmounts = DeclaredAmountsMode::Keep ]) : mixed
Parameters
- $declaredAmounts : DeclaredAmountsMode = DeclaredAmountsMode::Keep
fromArray()
From the configuration key declared_amounts (keep, recalculate or reject).
public
static fromArray(array<string|int, mixed> $config) : self
Parameters
- $config : array<string|int, mixed>