Use the state_nouveaux Dossier scope

This commit is contained in:
gregoirenovel 2017-07-10 16:27:53 +02:00
parent 3a602b05a4
commit 811723e5fb

View file

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