mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Remove "included_tax" hack from TaxRate
Yay! 🎉
The values of tax amounts stored in adjustments on the order no longer require use of the (deprecated) included_tax field.
This commit is contained in:
@@ -82,11 +82,6 @@ module Spree
|
||||
|
||||
order.adjustments.reload
|
||||
order.line_items.reload
|
||||
# TaxRate adjustments (order.adjustments.tax)
|
||||
# and line item adjustments (tax included on line items) consist of 100% tax
|
||||
order.adjustments.tax.additional.each do |adjustment|
|
||||
adjustment.set_absolute_included_tax! adjustment.amount
|
||||
end
|
||||
end
|
||||
|
||||
def default_zone_or_zone_match?(order)
|
||||
|
||||
Reference in New Issue
Block a user