DossierListFacade: use en_construction scope

This commit is contained in:
Simon Lehericey 2017-12-05 16:14:20 +01:00 committed by LeSim
parent 40b9a77395
commit 640a42d6cc

View file

@ -22,11 +22,11 @@ class DossiersListFacades
end
def total_new_dossier
current_devise_profil.dossiers.state_en_construction.not_archived.count
current_devise_profil.dossiers.en_construction.count
end
def new_dossier_number procedure_id
current_devise_profil.dossiers.state_en_construction.not_archived.where(procedure_id: procedure_id).count
current_devise_profil.dossiers.en_construction.where(procedure_id: procedure_id).count
end
def gestionnaire_procedures_name_and_id_list