/taxable-currency

Composite field that allows setting an amount and tax rate/category it will then render the final value

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

TaxableCurrency

Scrutinizer Code Quality Build Status

Composite field that allows setting an amount and tax rate/category it will then render the final value

Instalation

Install via composer: composer require silvercommerce/taxable-currency

Usage

TaxableCurrency is registered as a possible DB field, so to make use of this field just add the following to your Page/DataObject:

    private static $db = [
        'Price' => 'TaxableCurrency'
    ];

Setting Up Tax

Tax rates are defined via the Tax Admin module, you will need to define rates/categories before you can use this field correctly.