-
Notifications
You must be signed in to change notification settings - Fork 43
New version for Canadian Taxes #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Fluotonic
wants to merge
16
commits into
commerceguys:master
Choose a base branch
from
Fluotonic:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
90874d8
New zones and tax types to enable predefined Canada taxes.
Fluotonic e35f23f
Resolver for canadian taxes has been fixed and improved:
Fluotonic e661a82
Fixed indentation.
Fluotonic 09336fa
Removed unused trait.
Fluotonic 7326772
Improved comments and fixed a typo.
Fluotonic ad14416
Bumped version to 0.9.0.
Fluotonic c31fc9a
Fixed New Brunswick tax_type: name was wrong.
Fluotonic 099d88a
Updated version requirement in composer.
Fluotonic 6dc30f9
Matched changes made on original project (v8.2).
Fluotonic c10a411
Moved back to v0.8.1
Fluotonic 7a1abfe
Merge branch 'master' into master
Fluotonic 0e079bf
Merge branch 'master' into master
Fluotonic 7fdaab4
Fix unit tests
dmnc fe239f7
Code style
dmnc 51fc06d
Merge pull request #1 from dmnc/master
Fluotonic a59ffaf
Merge branch 'commerceguys:master' into master
Fluotonic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,4 +16,4 @@ indent_size = 4 | |
| max_line_length = 80 | ||
|
|
||
| [COMMIT_EDITMSG] | ||
| max_line_length = 0 | ||
| max_line_length = 0 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - Alberta", | ||
| "generic_label": "GST", | ||
| "zone": "ca_ab", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_ab_gst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_ab_gst_standard_2013", | ||
| "amount": 0.05, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - British Columbia", | ||
| "generic_label": "GST", | ||
| "zone": "ca_bc", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_bc_gst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_bc_gst_standard_2013", | ||
| "amount": 0.05, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - British Columbia", | ||
| "generic_label": "PST", | ||
| "zone": "ca_bc", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_bc_pst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_bc_pst_standard_2013", | ||
| "amount": 0.07, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - Manitoba", | ||
| "generic_label": "GST", | ||
| "zone": "ca_mb", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_mb_gst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_mb_gst_standard_2013", | ||
| "amount": 0.05, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "name": "Canada - Manitoba", | ||
| "generic_label": "RST", | ||
| "zone": "ca_mb", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_mb_rst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_mb_rst_standard_2013", | ||
| "amount": 0.08, | ||
| "start_date": "2013-07-01", | ||
| "end_date": "2019-06-30" | ||
| }, | ||
| { | ||
| "id": "ca_mb_rst_standard_2019", | ||
| "amount": 0.07, | ||
| "start_date": "2019-07-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "name": "Canada - New Brunswick", | ||
| "generic_label": "HST", | ||
| "zone": "ca_nb", | ||
| "tag": "CA", | ||
| "compound": false, | ||
| "rates": [ | ||
| { | ||
| "id": "ca_nb_hst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_nb_hst_standard_2013", | ||
| "amount": 0.13, | ||
| "start_date": "2013-04-01", | ||
| "end_date": "2016-06-30" | ||
| }, | ||
| { | ||
| "id": "ca_nb_hst_standard_2016", | ||
| "amount": 0.15, | ||
| "start_date": "2016-07-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "name": "Canada - Newfoundland and Labrador", | ||
| "generic_label": "HST", | ||
| "zone": "ca_nl", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_nl_hst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_nl_hst_standard_2013", | ||
| "amount": 0.13, | ||
| "start_date": "2013-04-01", | ||
| "end_date": "2015-12-31" | ||
| }, | ||
| { | ||
| "id": "ca_nl_hst_standard_2016", | ||
| "amount": 0.15, | ||
| "start_date": "2016-01-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - Nova Scotia", | ||
| "generic_label": "HST", | ||
| "zone": "ca_ns", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_ns_hst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_ns_hst_standard_2013", | ||
| "amount": 0.15, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - Northwest Territories", | ||
| "generic_label": "GST", | ||
| "zone": "ca_nt", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_nt_gst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_nt_gst_standard_2013", | ||
| "amount": 0.05, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - Nunavut", | ||
| "generic_label": "GST", | ||
| "zone": "ca_nu", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_nu_gst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_nu_gst_standard_2013", | ||
| "amount": 0.05, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - Ontario", | ||
| "generic_label": "HST", | ||
| "zone": "ca_on", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_on_hst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_on_hst_standard_2013", | ||
| "amount": 0.13, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "name": "Canada - Prince Edward Island", | ||
| "generic_label": "HST", | ||
| "zone": "ca_pe", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_pe_hst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_pe_hst_standard_2013", | ||
| "amount": 0.14, | ||
| "start_date": "2013-04-01", | ||
| "end_date": "2016-09-30" | ||
| }, | ||
| { | ||
| "id": "ca_pe_hst_standard_2016", | ||
| "amount": 0.15, | ||
| "start_date": "2016-10-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - Quebec", | ||
| "generic_label": "GST", | ||
| "zone": "ca_qc", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_qc_gst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_qc_gst_standard_2013", | ||
| "amount": 0.05, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - Quebec", | ||
| "generic_label": "QST", | ||
| "zone": "ca_qc", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_qc_qst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_qc_qst_standard_2013", | ||
| "amount": 0.09975, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "Canada - Saskatchewan", | ||
| "generic_label": "GST", | ||
| "zone": "ca_sk", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_sk_gst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_sk_gst_standard_2013", | ||
| "amount": 0.05, | ||
| "start_date": "2013-04-01" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "name": "Canada - Saskatchewan", | ||
| "generic_label": "PST", | ||
| "zone": "ca_sk", | ||
| "tag": "CA", | ||
| "rates": [ | ||
| { | ||
| "id": "ca_sk_pst_standard", | ||
| "name": "Standard", | ||
| "default": true, | ||
| "amounts": [ | ||
| { | ||
| "id": "ca_sk_pst_standard_2006", | ||
| "amount": 0.05, | ||
| "start_date": "2006-10-28", | ||
| "end_date": "2017-03-22" | ||
| }, | ||
| { | ||
| "id": "ca_sk_pst_standard_2017", | ||
| "amount": 0.06, | ||
| "start_date": "2017-03-23" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the hard version number. This will be determined by the tag name in GitHub