Closed ghost closed 1 year ago
Heya. The line you link to points to a docblock. Make sure to press "Y" before copying a line in github to always get the exact commit line you're pointing to.
Ah, here it is: https://github.com/driesvints/vat-calculator/blob/3b31ecd22b0685321909f32287889bc747a25930/src/VatCalculator.php#L780
Seems it only looks for rules within the $this->taxRules variable in that file and never checks the extra rules in the config.
Any way you could look into this @driesvints? I'd love to push my changes live soon :-)
Heya, I don't have time right now, sorry. I'll get to this once I find some.
Lol jesus I am an idiot and was using use Mpociot\VatCalculator\VatCalculator;
which VS Code imported for me.
Instead I need to use the Facade use Mpociot\VatCalculator\Facades\VatCalculator
I am probably doing something wrong, but I am switching back to this repo from @spaze his fork and added back some countries to
config/vat_calculator.php
like so:But neither of these countries seem to be recognized and I get a VAT rate of 0% returned. I did run
artisan config:cache
Artisan Tinker:
Looks like it misses the added data from the config file here and only uses the rules from the VatCalculator.php itself: https://github.com/driesvints/vat-calculator/blob/3.x/src/VatCalculator.php#L785