Add admin roi low and high

Signed-off-by: Chaïb Martinez <chaibax@gmail.com>
This commit is contained in:
Chaïb Martinez 2019-06-24 14:57:06 +02:00 committed by Nicolas Bouilleaud
parent d70b36a852
commit 017f914e21

View file

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