Commit 74acd8e
Add tax_reverse_charge_mode to Spree::TaxCategory and update related specs
Introduce the `tax_reverse_charge_mode` enum to the `Spree::TaxCategory` model,
with values `disabled`, `loose`, and `strict`. The change includes a migration to add the `tax_reverse_charge_mode`
column to the `spree_tax_categories` table, with a default value of `0` (disabled).
Additionally, the English locale file has been updated to include translations for the new enum values.
The `tax_reverse_charge_mode` enum allows for more granular control over tax applicability
based on the reverse charge status of an address. This enhancement improves the flexibility
and accuracy of tax calculations by enabling different tax handling modes.1 parent 63d01f1 commit 74acd8e
File tree
4 files changed
+49
-0
lines changed- core
- app/models/spree
- config/locales
- db/migrate
- spec/models/spree
4 files changed
+49
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| 393 | + | |
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
| |||
2271 | 2272 | | |
2272 | 2273 | | |
2273 | 2274 | | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
2274 | 2279 | | |
2275 | 2280 | | |
2276 | 2281 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
50 | 80 | | |
0 commit comments