From 25a739ea75e4f6a1a2a4eb82f8684e89b05dc772 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 16 Feb 2021 17:36:31 +0000 Subject: [PATCH] Remove Shipment #update_adjustment_included_tax --- app/models/spree/shipment.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/models/spree/shipment.rb b/app/models/spree/shipment.rb index 33e34f4ffd..5f3b6c6c55 100644 --- a/app/models/spree/shipment.rb +++ b/app/models/spree/shipment.rb @@ -281,7 +281,6 @@ module Spree end update_amounts if fee_adjustment&.amount != cost - update_adjustment_included_tax if fee_adjustment end def adjustment_label @@ -336,14 +335,6 @@ module Spree ShipmentMailer.shipped_email(id).deliver_later end - def update_adjustment_included_tax - if Config.shipment_inc_vat && (order.distributor.nil? || order.distributor.charges_sales_tax) - fee_adjustment.set_included_tax! Config.shipping_tax_rate - else - fee_adjustment.set_included_tax! 0 - end - end - def update_adjustments return unless cost_changed? && state != 'shipped'