Move taxing of admin adjustments out of customer details controller

This commit is contained in:
Matt-Yorkley
2023-06-02 14:13:56 +01:00
parent 65b6a75c9b
commit 13a22c56f4
2 changed files with 1 additions and 2 deletions

View File

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

View File

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