Composite field that allows setting an amount and tax rate/category it will then render the final value
Install via composer: composer require silvercommerce/taxable-currency
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'
];
Tax rates are defined via the Tax Admin module, you will need to define rates/categories before you can use this field correctly.