Merge pull request #10136 from demarches-simplifiees/add-export-colonne-dossier-MAJ-ldu
Exports: ajouter une colonne "date de dernière mise à jour du dossier" #10043
This commit is contained in:
commit
9f536d625c
2 changed files with 6 additions and 2 deletions
|
@ -1258,6 +1258,7 @@ class Dossier < ApplicationRecord
|
|||
['Archivé', :archived],
|
||||
['État du dossier', Dossier.human_attribute_name("state.#{state}")],
|
||||
['Dernière mise à jour le', :updated_at],
|
||||
['Dernière mise à jour du dossier le', :last_champ_updated_at],
|
||||
['Déposé le', :depose_at],
|
||||
['Passé en instruction le', :en_instruction_at],
|
||||
procedure.sva_svr_enabled? ? ["Date décision #{procedure.sva_svr_configuration.human_decision}", :sva_svr_decision_on] : nil,
|
||||
|
|
|
@ -49,6 +49,7 @@ describe ProcedureExportService do
|
|||
"Archivé",
|
||||
"État du dossier",
|
||||
"Dernière mise à jour le",
|
||||
"Dernière mise à jour du dossier le",
|
||||
"Déposé le",
|
||||
"Passé en instruction le",
|
||||
"Traité le",
|
||||
|
@ -115,8 +116,8 @@ describe ProcedureExportService do
|
|||
|
||||
# SimpleXlsxReader is transforming datetimes in utc... It is only used in test so we just hack around.
|
||||
offset = dossier.depose_at.utc_offset
|
||||
depose_at = Time.zone.at(dossiers_sheet.data[0][12] - offset.seconds)
|
||||
en_instruction_at = Time.zone.at(dossiers_sheet.data[0][13] - offset.seconds)
|
||||
depose_at = Time.zone.at(dossiers_sheet.data[0][13] - offset.seconds)
|
||||
en_instruction_at = Time.zone.at(dossiers_sheet.data[0][14] - offset.seconds)
|
||||
expect(dossiers_sheet.data.first.size).to eq(nominal_headers.size)
|
||||
expect(depose_at).to eq(dossier.depose_at.round)
|
||||
expect(en_instruction_at).to eq(dossier.en_instruction_at.round)
|
||||
|
@ -183,6 +184,7 @@ describe ProcedureExportService do
|
|||
"Archivé",
|
||||
"État du dossier",
|
||||
"Dernière mise à jour le",
|
||||
"Dernière mise à jour du dossier le",
|
||||
"Déposé le",
|
||||
"Passé en instruction le",
|
||||
"Traité le",
|
||||
|
@ -285,6 +287,7 @@ describe ProcedureExportService do
|
|||
"Archivé",
|
||||
"État du dossier",
|
||||
"Dernière mise à jour le",
|
||||
"Dernière mise à jour du dossier le",
|
||||
"Déposé le",
|
||||
"Passé en instruction le",
|
||||
"Traité le",
|
||||
|
|
Loading…
Reference in a new issue