mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Remove Shipment #update_adjustment_included_tax
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user