Skip to content

Commit

Permalink
Merge pull request #543 from slovensko-digital/GO-199/update_fs_deliv…
Browse files Browse the repository at this point in the history
…ery_report_visualisation

GO-199 Update 'Typ dokumentu' value in FS DeliveryReport visualisation
  • Loading branch information
luciajanikova authored Feb 3, 2025
2 parents dae3dd3 + 2bf1d32 commit 7437ec3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/fs/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def self.create_inbox_message(raw_message)
"fs_submission_status": raw_message['submission_status'],
"fs_message_type": raw_message.dig('message_container', 'message_type'),
"fs_submission_type_id": raw_message['submission_type_id'], # TODO kde pouzit? asi napr. pri vytvarani nazvu suboru pri exporte
"fs_submission_type_name": raw_message['submission_type_name'],
"fs_submission_created_at": Time.zone.parse(raw_message['submission_created_at']),
"fs_period": raw_message['period'],
"fs_dismissal_reason": raw_message['dismissal_reason'],
Expand Down
2 changes: 1 addition & 1 deletion app/views/fs/messages/_delivery_report.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<tr>
<th>Typ dokumentu:</th>
<td>
<b><%= message.title %></b>
<b><%= message.metadata.dig('fs_submission_type_name') || message.title %></b>
</td>
</tr>
<tr>
Expand Down

0 comments on commit 7437ec3

Please sign in to comment.