archive for all the groups
Co-authored-by: Christophe Robillard <christophe.robillard@beta.gouv.fr>
This commit is contained in:
parent
e933a80c55
commit
83d60c7b63
1 changed files with 5 additions and 2 deletions
|
@ -5,11 +5,14 @@ module Instructeurs
|
||||||
def index
|
def index
|
||||||
@procedure = procedure
|
@procedure = procedure
|
||||||
@average_dossier_weight = procedure.average_dossier_weight
|
@average_dossier_weight = procedure.average_dossier_weight
|
||||||
|
|
||||||
@count_dossiers_termines_by_month = Traitement.count_dossiers_termines_by_month(@procedure)
|
@count_dossiers_termines_by_month = Traitement.count_dossiers_termines_by_month(@procedure)
|
||||||
@nb_dossiers = @count_dossiers_termines_by_month.sum { |count_by_month| count_by_month["count"] }
|
@nb_dossiers = @count_dossiers_termines_by_month.sum { |count_by_month| count_by_month["count"] }
|
||||||
@poids_total = @nb_dossiers * @average_dossier_weight
|
@poids_total = @nb_dossiers * @average_dossier_weight
|
||||||
groupe_instructeur = current_instructeur.groupe_instructeurs.where(procedure: @procedure.id).first
|
|
||||||
@archives = Archive.for_groupe_instructeur(groupe_instructeur).to_a
|
@archives = Archive
|
||||||
|
.for_groupe_instructeur(current_instructeur.groupe_instructeurs.where(procedure: @procedure))
|
||||||
|
.to_a
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
Loading…
Reference in a new issue