diff --git a/src/dispatch/case_cost/service.py b/src/dispatch/case_cost/service.py index b6654e2f1f73..23135fd88039 100644 --- a/src/dispatch/case_cost/service.py +++ b/src/dispatch/case_cost/service.py @@ -42,7 +42,8 @@ def get_by_case_id_and_case_cost_type_id( db_session.query(CaseCost) .filter(CaseCost.case_id == case_id) .filter(CaseCost.case_cost_type_id == case_cost_type_id) - .one_or_none() + .order_by(CaseCost.id.asc()) + .first() )