GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
If you have a sales tax entry in your database when migrating from 0.70 to 1.0, checkout throws an error saying it can't find that calculator.
That's because, according to the release notes, both the VAT calculator and SalesTax calculator have been replaced by the refactored DefaultTax calculator.
For me, it was necessary to issue the mysql command:
update spree_calculators set type='Spree::Calculator::DefaultTax' where type='Spree::Calculator::SalesTax'
I would imagine something similar would be necessary to replace the VAT tax calculator.
The release notes only go so far as to say (paraphrasing) "Taxes are broke after the upgrade." One could infer a "Tough cookies." after that. ;)
I'd suggest a) working this (or any other) solution into the upgrade doc or, even better, b) implementing a migration which handles this for the user.
Could you please submit a patch to 1-0-stable that adds a migration that performs this task?
Merged with @5e76b40. Thanks!
And into 1-1-stable and master with @3ceb5c6 and @02e8f43 respectively.
Add SalesTax to DefaultTax migration for spree_calculators