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:
Matt-Yorkley
2021-03-05 18:04:47 +00:00
parent be3e184651
commit c07a4e6c55

View File

@@ -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)