Maikel Linke
|
a341561446
|
Move tax rate finding into service and spec it
The `#tax_rates` method is actually not present in Spree. We encapsulate
the logic in this commit and enable better unit testing. The new tests
cover a current bug: https://github.com/openfoodfoundation/openfoodnetwork/issues/3127
|
2018-12-19 14:31:29 +11:00 |
|
Pierre de Lacroix
|
f67a8c1f2d
|
Add tests
|
2017-12-01 13:37:24 +11:00 |
|
Pierre de Lacroix
|
a6ed4a2c6a
|
fix bad return value
in method Spree::Adjustment#find_closest_tax_rates_from_included_tax
|
2017-05-24 14:37:54 +10:00 |
|
Pierre de Lacroix
|
e854eb0426
|
add tests
for methods Spree::Order#tax_adjustment_totals
and Spree::Adjustment#find_closest_tax_rate_from_included_tax
|
2017-04-27 17:32:36 +10:00 |
|
Rob Harrington
|
59745fbc73
|
EnterpriseFees can inherit tax_category from product
|
2016-03-02 11:56:46 +11:00 |
|
Rob Harrington
|
137003c671
|
Correct calculation of tax on EnterpriseFees with TaxRates where included_in_price=false
|
2016-03-02 11:56:46 +11:00 |
|
Rohan Mitchell
|
92f7b72056
|
Check whether an individual adjustment has tax included
|
2015-10-15 09:58:06 +11:00 |
|
Rohan Mitchell
|
0dcd8eb8cc
|
Find adjustments with and without tax
|
2015-05-15 12:35:19 +10:00 |
|
Rohan Mitchell
|
9e8483348f
|
Fix spec - enterprise needs to charge sales tax for tax to be charged
|
2015-04-17 13:41:38 +10:00 |
|
Rohan Mitchell
|
81324f3cc4
|
Do not charge tax on shipments when distributor does not charge sales tax
|
2015-04-17 13:41:38 +10:00 |
|
Rohan Mitchell
|
40b4edeca1
|
Replace zoned_order factory with zone_with_member. In practice, former had issues with circular dependencies.
|
2015-03-25 16:27:29 +11:00 |
|
Rohan Mitchell
|
69dc92dec1
|
Create factories zoned_order and taxed_product
|
2015-03-25 16:27:29 +11:00 |
|
Rohan Mitchell
|
8d3f25bb39
|
Fix intermittent 500 error when updating the cart
|
2015-03-13 17:50:01 +11:00 |
|
Rohan Mitchell
|
381bfd383b
|
Allow enterprise fee with no tax category
|
2015-03-06 12:12:33 +11:00 |
|
Rohan Mitchell
|
1e18f773f5
|
Switch context -> describe, clarify test grammar
|
2015-03-06 11:15:07 +11:00 |
|
Rohan Mitchell
|
41792395aa
|
Record the tax included in per-item EnterpriseFees
|
2015-03-06 11:13:47 +11:00 |
|
Rohan Mitchell
|
98ff895f5f
|
Record the tax included in per-order EnterpriseFees
|
2015-03-06 10:38:55 +11:00 |
|
Rohan Mitchell
|
b5ce056d06
|
Fix tax calculations for determining tax included in an amount
|
2015-03-05 13:03:53 +11:00 |
|
Rohan Mitchell
|
dfb855bd14
|
Record the tax included in shipping.
|
2015-03-05 10:44:27 +11:00 |
|
Rohan Mitchell
|
9395f6c808
|
Record the tax included in adjustments. TaxRate adjustments consist of 100% tax.
|
2015-03-05 10:44:26 +11:00 |
|
Rohan Mitchell
|
8654f23a19
|
Move spree model decorator specs into their own dir to mirror model dir layout
|
2013-10-17 09:53:54 +11:00 |
|