Remove Shipment #update_adjustment_included_tax

This commit is contained in:
Matt-Yorkley
2021-02-16 17:36:31 +00:00
parent 385b12d83b
commit 25a739ea75

View File

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