diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index b4906b17a..78e05fa99 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -141,37 +141,6 @@ def template_usage(service_id): ) -@main.route("/services//monthly-billing-usage") -@login_required -@user_has_permissions('manage_service') -def monthly_billing_usage(service_id): - year, current_financial_year = requested_and_current_financial_year(request) - - free_sms_allowance = billing_api_client.get_free_sms_fragment_limit_for_year(service_id, year) - units = billing_api_client.get_billable_units(service_id, year) - yearly_usage = billing_api_client.get_service_usage(service_id, year) - - usage_template = 'views/usage.html' - if 'letter' in current_service['permissions']: - usage_template = 'views/usage-with-letters.html' - return render_template( - usage_template, - months=list(get_free_paid_breakdown_for_billable_units( - year, - free_sms_allowance, - units - )), - selected_year=year, - years=get_tuples_of_financial_years( - partial(url_for, '.monthly_billing_usage', service_id=service_id), - start=current_financial_year - 1, - end=current_financial_year + 1, - ), - **calculate_usage(yearly_usage, - free_sms_allowance) - ) - - @main.route("/services//usage") @login_required @user_has_permissions('manage_service')