Skip to content

Commit

Permalink
added overforingsbrev
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgtho committed Dec 8, 2023
1 parent e4198ab commit 37bfb6a
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
28 changes: 28 additions & 0 deletions templates/hrmu/overforingsbrev-nb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
definition: brevmal
language: nb
watermark: {{#if preview}} true {{else}} false {{/if}}
address:
name: {{ employeeName }}
street: {{ streetAddress }}
city: {{ zipCode }} {{ zipPlace }}
info:
our-date: {{ timestamp }}
sector: {{ documentResponsible }}
paragraph: Offl. § 13
---

# Overføringsbrev {{ countyName }} (Her trengs det en tittel)
Litt tekste dutten og datten

Hva skal det stå her mon tro?

Velkommen tilbake til gamlefylket, din luring!

Med vennlig hilsen

{{ sender }}
<br>
Fylkesdirektør

*Dokumentet er elektronisk godkjent og sendes uten signatur.*
18 changes: 18 additions & 0 deletions tests/data/hrmu-overforingsbrev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"system": "hrmu",
"template": "overforingsbrev",
"language": "nb",
"type": "2",
"version": "B",
"data": {
"preview": true,
"timestamp": "01.01.2024",
"countyName": "Favorittfylket",
"employeeName": "Bjartmar Ribbe",
"streetAddress": "Saurongata 44",
"zipCode": "1234",
"zipPlace": "Mordor",
"documentResponsible": "Hvem eller hvilken sektor skal være ansvarlig?",
"sender": "Sjefen sjøl"
}
}
2 changes: 1 addition & 1 deletion tests/generate-document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const generateDocumentFunc = require('../GenerateDocument')
const { writeFile } = require('fs').promises
const { join } = require('path')

const testDocumentsTypes = ['acos-innplasseringsbrev', 'iop-hemmelig', 'smart-motereferat', 'varsel-fag', 'varsel-orden', 'varsel-atferd', 'yff-bekreftelse', 'yff-bekreftelse-bedrift', 'yff-laereplan', 'yff-tilbakemelding', 'vigo-KONTRAKT-response']
const testDocumentsTypes = ['acos-innplasseringsbrev', 'iop-hemmelig', 'smart-motereferat', 'varsel-fag', 'varsel-orden', 'varsel-atferd', 'yff-bekreftelse', 'yff-bekreftelse-bedrift', 'yff-laereplan', 'yff-tilbakemelding', 'vigo-KONTRAKT-response', 'hrmu-overforingsbrev']
const context = { log: console.log, invocationId: 'testing' }

describe('GenerateDocument function test', () => {
Expand Down

0 comments on commit 37bfb6a

Please sign in to comment.