Skip to content

Commit

Permalink
R Fjern adressefelter i innvilgelsesbrevet og fiks navngivning på dat…
Browse files Browse the repository at this point in the history
…ofelt Co-authored-by: KarlEvaldNav <[email protected]>
  • Loading branch information
benedihm committed Feb 28, 2024
1 parent 3a88f05 commit c015a55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# tiltakspenger-pdfgen
PDF generator for tiltakspenger. Kjør lokalt docker image med `./run_development.sh`

PDFene kan testes lokalt på `http://localhost:8081/api/v1/genpdf/<application>/<template>`, f.eks.
http://localhost:8081/api/v1/genpdf/tpts/vedtakInnvilgelse
PDFene kan testes lokalt på `http://localhost:8085/api/v1/genpdf/<application>/<template>`, f.eks.
http://localhost:8085/api/v1/genpdf/tpts/vedtakInnvilgelse

Templatene vil bruke flettedata fra json-fil med samme navn som template i `data/tpts`

Expand Down
8 changes: 1 addition & 7 deletions data/tpts/vedtakInnvilgelse.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{
"personalia": {
"dato": "01.01.2021",
"ident": "12345678901",
"fornavn": "Planet",
"etternavn": "Planetus",
"adresse": "Melkeveien",
"husnummer": "20",
"bruksenhet": "H103",
"postnummer": "9807",
"poststed": "Uranus",
"antallBarn": 0
},
"tiltaksinfo": {
Expand All @@ -17,10 +11,10 @@
"tiltaksnummer": "2023/0263674",
"arrangør": "DAHLS GRILL ÅRNES"
},
"datoForUtsendelse": "01.01.2023",
"fraDato": "2025-01-01",
"tilDato": "2025-01-01",
"saksnummer": "123456789",
"innsendingTidspunkt": "2023-09-07T12:18:38.487383",
"barnetillegg": false,
"saksbehandler": "MOT BAKKE",
"kontor": "NAV Hvaler"
Expand Down
6 changes: 2 additions & 4 deletions templates/tpts/partials/base.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
padding-right: 0.2em;
}
</style>
<title>Supplerende stønad</title>
<title>Tiltakspenger</title>
</head>

<body>
Expand All @@ -126,11 +126,9 @@

<div class="personalia">
<p>{{fornavn}} {{etternavn}}</p>
<p>{{adresse}} {{husnummer}}, {{bruksenhet}}</p>
<p>{{postnummer}} {{poststed}}</p>
</div>
<div class="dato">
<p>Dato: {{dato}}</p>
<p>Dato: {{datoForUtsendelse}}</p>
</div>
</div>
{{/with}}
Expand Down

0 comments on commit c015a55

Please sign in to comment.