https://github.com/runlevel5/spree-gst-deductor
GST Deductor for Spree (no longer work with 0.11.1 due to changes in Charge/Credit
https://github.com/runlevel5/spree-gst-deductor
Last synced: about 1 year ago
JSON representation
GST Deductor for Spree (no longer work with 0.11.1 due to changes in Charge/Credit
- Host: GitHub
- URL: https://github.com/runlevel5/spree-gst-deductor
- Owner: runlevel5
- Created: 2010-10-04T05:49:05.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-03-08T02:39:29.000Z (over 14 years ago)
- Last Synced: 2025-01-25T12:27:56.254Z (over 1 year ago)
- Language: Ruby
- Homepage: http://github.com/joneslee85/spree-gst-deductor
- Size: 97.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Gst Deductor
------------
If you are an Australian vendor, and if you happen to get caught in situation where prices are GST inclusive and you could not rely on stock VAT calculator
due to rounded off amount OR you are selling stuff overseas in which GST needed to be deducted, then this extension is for you. It does:
* Make sure your price is GST inclusive
* If Shipping Country is Australia, no GST tax is deducted
* If Shipping Country is NOT Australia, 10% of GST will be deducted and the Tax Charge will display a negative amount on Summary partial
One caveat is that I override the TaxCharge code so the tax rate can be a negative number which is not a very ideal way to do things because the Spree Core
Team tries to enforce Charge a positive value.
I did not have time to write a new Tax Credit class, this comes as quick solution. In the future, I would improve this extension to do things as Credit class instead of
Tax Charge class. For all Aussies out there, enjoy M.A.T.E!
NOTE: The Tax Rate is hard-coded within the code, it WILL NOT use the Tax Rate you set in the backend.
Setup
-----
rake db:migrate
then goes to admin backend and create Tax Rate for your Tax Category using GST Deductor calculator and the zone is GST Deductible zone, just type in any amount for the rate (it's not used btw)
and that's it! Test it with Australian as Shipping Country, you should see Tax Charge shows $0, if others would show - $amount