-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
214 lines (204 loc) · 11.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="page.css" rel="stylesheet" />
<link href="options.css" rel="stylesheet" />
<link href="print.css" rel="stylesheet" />
<link href="fonts.css" rel="stylesheet" />
<title>Faktura generator</title>
</head>
<body>
<div class="options">
<label for="select-organization">Foretak</label>
<select id="select-organization" onchange="handleSelectOrganization(event.target.value)"></select>
<label for="select-organization-reference">Foretakets kontaktperson</label>
<select
id="select-organization-reference"
disabled
onchange="handleSelectOrganizationReference(event.target.value)"
></select>
<label for="checkbox-subject-to-vat">MVA-pliktig</label>
<input
id="checkbox-subject-to-vat"
type="checkbox"
name="subject-to-vat"
onchange="handleCheckboxSubjectToVat(event.target.checked)"
/>
<label for="select-customer">Kunde</label>
<select id="select-customer" onchange="handleSelectCustomer(event.target.value)"></select>
<label for="select-customer-reference">Kundens kontaktperson</label>
<select
id="select-customer-reference"
disabled
onchange="handleSelectCustomerReference(event.target.value)"
></select>
<label for="input-delivery-date">Leveringsdato</label>
<input id="input-delivery-date" type="date" onchange="handleInputDeliveryDate(event.target.value)" />
<label for="input-invoice-date">Fakturadato</label>
<input id="input-invoice-date" type="date" onchange="handleInputInvoiceDate(event.target.value)" />
<label for="input-due-date">Forfallsdato</label>
<input id="input-due-date" type="date" onchange="handleInputDueDate(event.target.value)" />
<label for="input-due-date">Fakturanummer</label>
<input id="input-invoice-number" type="number" onchange="handleInputInvoiceNumber(event.target.value)" />
</div>
<div class="page-container">
<div class="page">
<div class="page-header page-padding flex-container">
<div class="page-header-item flex-item size-1-2">
<img id="organization-logo" src="" class="logo" />
<div class="customer" id="customer">
<p id="customer-name" class="text-bold text-dark-gray"></p>
<p id="customer-address-line"></p>
<p>
<span id="customer-address-zipcode"></span>
<span id="customer-address-city"></span>
</p>
</div>
</div>
<div class="page-header-item flex-item size-1-2">
<div class="heading">
<p class="pageno text-dark-gray">Side 1 av 1</p>
<h1 id="document-title" class="text-black text-semi-bold text-uppercase">Faktura</h1>
</div>
<hr />
<div class="org-info">
<span id="organization-info-name" class="name text-large text-black text-semi-bold"></span>
<span id="organization-info-address-line" class="address text-medium text-dark-gray"></span>
<span class="place text-medium text-dark-gray text-uppercase"
><span id="organization-info-address-zip-code"></span>
<span id="organization-info-address-city"></span
></span>
</div>
<hr />
<div class="org-details text-small text-dark-gray">
<div>Vår ref: <span id="organization-reference-name"></span></div>
<div>Deres ref: <span id="customer-reference-name"></span></div>
<div>Leveringsdato: <span id="delivery-date"></span></div>
<div>
Levert til: <span id="customer-reference-address-line"></span>,
<span id="customer-reference-zip-code"></span>
<span id="customer-reference-city" class="text-uppercase"></span>
</div>
</div>
<hr />
<div class="invoice-info flex-container">
<dl class="flex-item text-medium size-1-2">
<dt>Fakturadato:</dt>
<dd id="invoice-date"></dd>
<dt id="due-date-label">Forfallsdato:</dt>
<dd id="due-date" class="text-red text-semi-bold"></dd>
</dl>
<dl class="flex-item text-medium size-1-2">
<dt>Fakturanr.:</dt>
<dd id="invoice-number">20190013</dd>
</dl>
</div>
</div>
</div>
<div class="page-body page-padding">
<div class="text-small">
<input class="message" placeholder="Beskjed til mottakeren" />
</div>
<table class="invoice-lines">
<thead>
<tr class="text-small text-dark-gray text-semi-bold text-uppercase">
<th class="text-align-left" width="363">Beskrivelse</th>
<th class="text-align-right">Pris</th>
<th class="text-align-right">Antall</th>
<th class="text-align-right">Rabatt</th>
<th class="text-align-right">MVA</th>
<th class="text-align-right">Beløp</th>
</tr>
</thead>
<tbody id="invoice-lines"></tbody>
</table>
<button onclick="addInvoiceLine()" class="hidden-from-print">Legg til linje</button>
<div class="flex-container invoice-lines-summary">
<div class="flex-item size-1-2">
<table>
<thead>
<tr class="text-small text-dark-gray text-semi-bold">
<th class="text-align-left">MVA-sats</th>
<th class="text-align-right">Grunnlag</th>
<th class="text-align-right">MVA</th>
</tr>
</thead>
<tbody id="vat-summary-lines"></tbody>
</table>
</div>
<div class="flex-item size-1-2">
<dl class="text-small text-dark-gray">
<dt>Nettobeløp</dt>
<dd id="net-amount">0,00</dd>
<dt>Merverdiavgift</dt>
<dd id="vat-amount">0,00</dd>
</dl>
<hr />
<dl class="total text-medium text-dark-gray text-semi-bold text-uppercase">
<dt id="invoice-total-label">Å betale</dt>
<dd id="invoice-total"></dd>
</dl>
</div>
</div>
</div>
<footer class="page-padding">
<div class="payment-info">
<p
id="payment-info-legal-text"
class="payment-info-legal text-small text-italic text-dark-gray"
>
Ved betaling etter forfall kan det påløpe renter og gebyr etter statens satser.<br />Ved
innsigelse vil kravet kunne bli sendt til forliksrådet, jf. tvistelovens § 5-2.
</p>
<h2 id="payment-info-title" class="text-semi-bold text-gray text-uppercase">
Betalingsinformasjon
</h2>
<div class="flex-container">
<div class="flex-item size-1-3">
<dl class="text-medium">
<dt>Fakturanummer:</dt>
<dd id="payment-info-invoice-number"></dd>
<dt>Beløp:</dt>
<dd id="payment-info-invoice-total"></dd>
<dt>SWIFT:</dt>
<dd id="payment-info-swift"></dd>
</dl>
</div>
<div class="flex-item size-2-3">
<p id="payment-info-instruction" class="text-medium text-black text-semi-bold">
Husk å merke betalingen med fakturanummer!
</p>
<dl id="bank-account-details" class="text-medium">
<dt>Bankkonto:</dt>
<dd id="payment-info-account-no"></dd>
<dt>IBAN:</dt>
<dd id="payment-info-iban"></dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="footer-text text-small">
<span id="footer-organization-name" class="text-black text-semi-bold text-uppercase"
>Foretak</span
>
<span class="separator">//</span>
<span class="text-light-gray">ORG.NR. <span id="footer-organization-number"></span></span>
<span class="separator">//</span>
<span class="text-light-gray"
>TELEFON: <span id="footer-organization-phone-number"></span
></span>
</div>
</footer>
</div>
</div>
<script src="data/organization.js"></script>
<script src="data/customers.js"></script>
<script src="scripts/helpers.js"></script>
<script src="scripts/invoiceLine.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>