mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Move taxing of admin adjustments out of customer details controller
This commit is contained in:
@@ -56,8 +56,6 @@ module Spree
|
||||
# If the order's address has been changed, the tax zone could be different,
|
||||
# which means a different set of tax rates might be applicable.
|
||||
@order.create_tax_charge!
|
||||
Spree::TaxRate.adjust(@order, @order.adjustments.admin)
|
||||
|
||||
@order.update_totals_and_states
|
||||
end
|
||||
|
||||
|
||||
@@ -322,6 +322,7 @@ module Spree
|
||||
|
||||
Spree::TaxRate.adjust(self, line_items)
|
||||
Spree::TaxRate.adjust(self, shipments) if shipments.any?
|
||||
Spree::TaxRate.adjust(self, adjustments.admin) if adjustments.admin.any?
|
||||
fee_handler.tax_enterprise_fees!
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user