Make sure fees are applied when adding the first item to a back office order

This commit is contained in:
Cillian O'Ruanaidh
2024-02-02 13:11:15 +00:00
parent df769192af
commit da71f711c0
2 changed files with 14 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ module Api
OrderWorkflow.new(@order).advance_to_payment if @order.line_items.any?
@order.recreate_all_fees!
render json: @shipment, serializer: Api::ShipmentSerializer, status: :ok
end