CRMTraits_Financial_TaxTrait
Trait TaxTrait
Trait for working with tax in tests
Table of Contents
Methods
- createFinancialTaxAccount() : void
- Create the financial account for tax.
- createFinancialTypeWithSalesTax() : void
- Create a financial type with related sales tax config.
Methods
createFinancialTaxAccount()
Create the financial account for tax.
public
createFinancialTaxAccount(string $key, array<string|int, mixed> $params) : void
Parameters
- $key : string
- $params : array<string|int, mixed>
createFinancialTypeWithSalesTax()
Create a financial type with related sales tax config.
public
createFinancialTypeWithSalesTax([string $key = 'taxable' ][, array<string|int, mixed> $financialTypeParams = [] ][, array<string|int, mixed> $financialAccountParams = [] ]) : void
Parameters
- $key : string = 'taxable'
- $financialTypeParams : array<string|int, mixed> = []
- $financialAccountParams : array<string|int, mixed> = []