TaxExtension extends AbstractExtension
Table of Contents
$taxRuleRepository | TaxRuleRepository | |
---|---|---|
__construct() | TaxExtension constructor. | mixed |
getFunctions() | Returns a list of functions to add to the existing list. | \Twig\TwigFunction[] |
isReducedTaxRate() | 明細が軽減税率対象かどうかを返す. | bool |
Properties
$taxRuleRepository
private
TaxRuleRepository
$taxRuleRepository
Methods
__construct()
TaxExtension constructor.
public
__construct(
$taxRuleRepository :
TaxRuleRepository
)
: mixed
Parameters
- $taxRuleRepository : TaxRuleRepository
Return values
mixedgetFunctions()
Returns a list of functions to add to the existing list.
public
getFunctions(
)
: \Twig\TwigFunction[]
Return values
\Twig\TwigFunction[] —An array of functions
isReducedTaxRate()
明細が軽減税率対象かどうかを返す.
public
isReducedTaxRate(
$OrderItem :
OrderItem
)
: bool
受注作成時点での標準税率と比較し, 異なれば軽減税率として判定する.
Parameters
- $OrderItem : OrderItem