Use the state_nouveaux Dossier scope
This commit is contained in:
parent
3a602b05a4
commit
811723e5fb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue