From c07a4e6c556215ffabb248119f6be489fb0cabc6 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 5 Mar 2021 18:04:47 +0000 Subject: [PATCH] Remove "included_tax" hack from TaxRate Yay! :tada: The values of tax amounts stored in adjustments on the order no longer require use of the (deprecated) included_tax field. --- app/models/spree/tax_rate.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/models/spree/tax_rate.rb b/app/models/spree/tax_rate.rb index eb543306f7..93ae063fee 100644 --- a/app/models/spree/tax_rate.rb +++ b/app/models/spree/tax_rate.rb @@ -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)