spaze / vat-calculator

[EOL, use driesvints/vat-calculator] Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be. Fork of mpociot/vat-calculator, standalone, PHP 7.3+, modernized, with more features.
MIT License
48 stars 2 forks source link

Date-based VAT rates #5

Closed spaze closed 4 years ago

spaze commented 4 years ago

Specify an optional date to use the VAT rate for when calculating the price

Allows to issue invoices when a country has changed its VAT rate (like DE recently) and you want to issue an invoice for the period when the previous rate was still used.

This is a followup to #4 also mentioned https://github.com/mpociot/vat-calculator/issues/94.

Seldaek commented 4 years ago

Any plan to submit this for a merge back to the original project?

spaze commented 4 years ago

@Seldaek Yes but not in the nearest future. My fork has diverged quite a bit so a reimplementation is needed.

spaze commented 4 years ago

@Seldaek So I got bored (or should I say no sleep for the wicked instead?), here: https://github.com/mpociot/vat-calculator/pull/95

(I've forked the lib because I've had an open PR #72 waiting there for a year for some reason and it was getting urgent, otherwise contributing back is my preferred way of doing things because then I don't need to maintain my forks 🤣)

Seldaek commented 4 years ago

Great thanks :)