solidusio / solidus_avatax Goto Github PK
View Code? Open in Web Editor NEWAvatax integration with Solidus
License: BSD 3-Clause "New" or "Revised" License
Avatax integration with Solidus
License: BSD 3-Clause "New" or "Revised" License
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from block in <top (required)> at /Users/djones/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/solidus_avatax-1df6862b0c1e/app/models/spree/order_contents_decorator.rb:23)
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from block in <top (required)> at /Users/djones/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/solidus_avatax-1df6862b0c1e/app/models/spree/order_contents_decorator.rb:24)
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from block in <top (required)> at /Users/djones/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/solidus_avatax-1df6862b0c1e/app/models/spree/order_contents_decorator.rb:25)
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from block in <top (required)> at /Users/djones/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/solidus_avatax-1df6862b0c1e/app/models/spree/promotion_handler/coupon_decorator.rb:10)
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from block in <top (required)> at /Users/djones/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/solidus_avatax-1df6862b0c1e/app/models/spree/tax/order_adjuster_decorator.rb:8)
Would be great to get these warnings cleared up.
block in adjust! () Users/jason/.bundle/ruby/2.1.0/bundler/gems/solidus-d7ac8e1285c8/core/app/models/spree/tax/item_adjuster.rb line 33:
rates_for_item(item).map { |rate| rate.adjust(order_tax_zone(order), item) }
this line of code in solidus core appears to be calling deprecated method adjust
found in Users/jason/.bundle/ruby/2.1.0/bundler/gems/solidus_avatax-31b8a15304be/app/models/spree/tax_rate_decorator.rb
this is happening for me when an order is moving from Shipping -> Delivery steps in checkout
full stacktrace here:
https://gist.github.com/jasonfb/a0416125155a0ac8718290c2d592f245
See discussion here.
It's surprising that SpreeAvatax::SalesInvoice.generate(order)
modifies the order, rather than just creating an invoice. Something like SpreeAvatax::SalesInvoice.calculate_and_set_taxes(order)
would probably be a better name.
There are at least three generate
methods defined in solidus_avatax right now. We'd probably want to update all of them and deprecate the generate
name.
So posting here but I am on Spree 2.3.5 of the Bonobos fork with spree_avatax.
I am seeing a problem with the following workflow
For a quick fix, I have changed this to:
def compute_amount(item)
item.amount
end
Which will just return the previously calculated tax, which should be correct.
Just wondering if this case was never considered or encountered as its very possible folks are managing customer service issues/refunds/adjustments in other ways?
We need to add timeouts and an enable/disable switch to solidus_avatax. (Avatax had an outage on Black Friday that caused us some pain.)
We want to be able to flip the disable switch or change the timeout length without having to restart our app.
Some options I can think of:
Spree::TaxRate
:class Spree::TaxRate
preference :avatax_enabled, :boolean, default: true
preference :avatax_timeout_seconds, :integer, default: 20
end
I think I prefer option 1. Option 2 feels a bit invasive to me. Any other recommendations or thoughts?
Hey Everyone,
I just noticed that a lot of work has been started on this gem recently and I wanted to say thank you! I did have a quick question about the difference (if any) between this gem and https://github.com/boomerdigital/solidus_avatax_certified. We are currently using the other one in production and were just wondering differences/benefits to each.
Thanks and keep up the good work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.