From 01-01-2015 rules on VAT calculation in EU has changed and this package helps us to meet the legislation requirements regarding VAT percentage calculation throughout and outside EU including VAT exemption regions (e.g. like Canarian Islands).
$ composer require openprovider/vat
$calc = new \Openprovider\Vat\Calculator('2015-12-16', []);
$calc->setProviderCountry('RU');
$calc->setCustomerCountry('RU');
$calc->setIsB2b(true);
$vat = $calc->calculate();
- Release to open source
- Rename method checkProvincesEu -> isEuExemption
- Update unit-tests
All the contributors are welcome. If you would like to be the contributor please accept some rules.
- The pull requests will be accepted only in "develop" branch
- All modifications or additions should be tested
Thank you for your understanding!