From 017f914e2107919af55bc5b7944a3add3d2c3fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chai=CC=88b=20Martinez?= Date: Mon, 24 Jun 2019 14:57:06 +0200 Subject: [PATCH] Add admin roi low and high MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Chaìˆb Martinez --- app/services/administrateur_usage_statistics_service.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/services/administrateur_usage_statistics_service.rb b/app/services/administrateur_usage_statistics_service.rb index e599d0d3b..e678ebc69 100644 --- a/app/services/administrateur_usage_statistics_service.rb +++ b/app/services/administrateur_usage_statistics_service.rb @@ -57,7 +57,10 @@ class AdministrateurUsageStatisticsService .map { |_procedure_id, count| count } .max || 0, nb_dossiers_traite: nb_dossiers_by_synthetic_state['termine'], - nb_dossiers_dossier_en_instruction: nb_dossiers_by_synthetic_state['en_instruction'] + nb_dossiers_dossier_en_instruction: nb_dossiers_by_synthetic_state['en_instruction'], + admin_roi_low: nb_dossiers * 7.04, + admin_roi_high: nb_dossiers * 17.25 + } if administrateur.current_sign_in_at.present?