Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
AE-1977: Remove hallinto-oikeus-liite from käskypäätös / varsinainen …
Browse files Browse the repository at this point in the history
…päätös document

- Will be added as a separate document later
  • Loading branch information
Juholei committed Nov 9, 2023
1 parent 8140f97 commit e6bbff9
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,9 @@
tiedoksi (if (template/send-tiedoksi? template) (filter osapuoli/tiedoksi? osapuolet) [])
template-data (template-data db whoami valvonta toimenpide
osapuoli documents ilmoituspaikat
tiedoksi roolit)
generated-pdf (pdf/generate-pdf->bytes {:template (:content template)
:data template-data})]
(if (toimenpide/kaskypaatos-varsinainen-paatos? toimenpide)
(add-hallinto-oikeus-attachment db generated-pdf (-> toimenpide
:type-specific-data
:osapuoli-specific-data
(type-specific-data/find-administrative-court-id-from-osapuoli-specific-data (:id osapuoli))))
generated-pdf)))
tiedoksi roolit)]
(pdf/generate-pdf->bytes {:template (:content template)
:data template-data})))

(defn remove-osapuolet-with-no-document
"If toimenpidetype of the toimenpide is such that the document might not be created for some,
Expand Down

0 comments on commit e6bbff9

Please sign in to comment.