Comments (12)
I'd ditch the start/end date for simplicity. Is active may be good so one can in fact add a new tax rate for when it changes (rather than edit the old one)
Vat rates do change btw surprisingly often here in Europe.
from ror_ecommerce.
start and finish dates are required to make returns easier. One big issue I had with Spree was it's in-ability to work with returns.
I have a method
tax.at(Order.completed_at)
Thus you can determine the tax that should have been charged at a given time.
I'll look to see the difficulty of changing the name. I will most likely change this but it's a lower priority for now.
from ror_ecommerce.
The idea of having the tax.at is good, no doubt.
For putting things on the "later" list, I made a Wiki page for that and we could close this and add the issue there
from ror_ecommerce.
What about the rename ?
from ror_ecommerce.
I've been lazy on this one. (more scared of missing something) I'll start this now... For some reason I slept 12 hours last night, WOW.
from ror_ecommerce.
This will break old migrations so I'm thinking the best option is to remove old migrations and in the new migration to check for the tax_statuses table.... If the table exists change the name, otherwise create the new table
from ror_ecommerce.
How can it break old migrations ? Don't they get applied first and then the rename should work ?
But if it works all is well.
BTW: how many active installations are there about ? and how do you view upgrades?
from ror_ecommerce.
Lets break the upgrade-ability to a google group talk...
https://groups.google.com/forum/?fromgroups#!topic/ror_ecommerce/RT_Ljc3IPpI
from ror_ecommerce.
If I rename the models the old migrations will break because they require a model named TaxStatus.
from ror_ecommerce.
That can be fixed by declaring the class that is expected inside the migration. (Not pretty but i read it works)
from ror_ecommerce.
Just verifying now...
from ror_ecommerce.
Looks GOOD! I'm out for the rest of the day. Let continue the upgrade talk... I'm hoping we can think of a better process than anything I wrote down. I personally think each has serious problems.
from ror_ecommerce.
Related Issues (20)
- Would ror_ecommerce work fine under ruby-2.3.1 ? HOT 4
- Update Ruby/Rails requirements in README HOT 1
- Can create a submitted order with total charged not matching items associated with order. HOT 3
- How to use payment gateway in development mode? HOT 5
- Paginate Products HOT 3
- N + 1 queries Shopping::CartItemsController.index HOT 2
- Any other issues ? HOT 1
- where.first can be replaced by find_by HOT 2
- detect should be replaced by find_by HOT 6
- loop update could be update_all HOT 2
- some html label generate code could be changed in products/index.html.erb HOT 4
- count could be size , so that when it's loaded, the size will be faster than count HOT 3
- map().sum could be sum(xx) HOT 1
- Demo Environment Down HOT 2
- NoMethodError (undefined method `[]' for nil:NilClass) when trying to create new Product HOT 2
- Role.all.map could be replaced by pluck
- unused data retrieval
- unused data
- Referral email should be case_insensitive
- A deleted column is still used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ror_ecommerce.