dossiers: use the depose_at date in the deposit recepit
A dossier has several submission dates: - `depose_at` is the first date at which the dossier was submitted - `en_construction_at` is the last date at which the dossier was submitted OR reverted from `en_instruction` to `en_construction`. For now we prefer to display the earliest date: - it gives more rights to the user, - en_construction_at means the administration can reset at will the date printed on deposit receipts (by moving the dossier `en_instruction` and then back), which we don't want.
This commit is contained in:
parent
0dc249e781
commit
982a209e7d
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ prawn_document(margin: [top_margin, right_margin, bottom_margin, left_margin], p
|
||||||
pdf.fill_color grey
|
pdf.fill_color grey
|
||||||
pdf.pad_top(7) do
|
pdf.pad_top(7) do
|
||||||
pdf.text "#{Dossier.human_attribute_name(:id)} : #{@dossier.id.to_s}", size: 10, character_spacing: -0.2, align: :justify
|
pdf.text "#{Dossier.human_attribute_name(:id)} : #{@dossier.id.to_s}", size: 10, character_spacing: -0.2, align: :justify
|
||||||
pdf.text t('.file_submitted_at') + ' : ' + l(@dossier.en_construction_at, format: '%e %B %Y'), size: 10, character_spacing: -0.2, align: :justify
|
pdf.text t('.file_submitted_at') + ' : ' + l(@dossier.depose_at, format: '%e %B %Y'), size: 10, character_spacing: -0.2, align: :justify
|
||||||
pdf.text t('.dossier_state') + ' : ' + papertrail_dossier_state(@dossier), size: 10, character_spacing: -0.2, align: :justify
|
pdf.text t('.dossier_state') + ' : ' + papertrail_dossier_state(@dossier), size: 10, character_spacing: -0.2, align: :justify
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue