removed routing condition in weekly summary
This commit is contained in:
parent
7e15c6a4a4
commit
d6e7799370
2 changed files with 2 additions and 3 deletions
|
@ -10,8 +10,7 @@ class ProcedureOverview
|
|||
@start_date = start_date
|
||||
@procedure = procedure
|
||||
|
||||
dossiers = procedure.dossiers
|
||||
dossiers = dossiers.where(groupe_instructeur: groups) if procedure.routee?
|
||||
dossiers = procedure.dossiers.where(groupe_instructeur: groups)
|
||||
|
||||
@dossiers_en_instruction_count = dossiers.state_en_instruction.count
|
||||
@old_dossiers_en_instruction = dossiers
|
||||
|
|
|
@ -8,7 +8,7 @@ describe ProcedureOverview, type: :model do
|
|||
before { Timecop.freeze(friday) }
|
||||
after { Timecop.return }
|
||||
|
||||
let(:procedure_overview) { ProcedureOverview.new(procedure, monday, []) }
|
||||
let(:procedure_overview) { ProcedureOverview.new(procedure, monday, [procedure.defaut_groupe_instructeur]) }
|
||||
|
||||
describe 'dossiers_en_instruction_count' do
|
||||
let!(:en_instruction_dossier) do
|
||||
|
|
Loading…
Reference in a new issue