-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate.html
More file actions
66 lines (63 loc) · 1.77 KB
/
template.html
File metadata and controls
66 lines (63 loc) · 1.77 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 400;
src: url(./Inter-Regular.ttf) format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 700;
src: url(./Inter-Bold.ttf) format("woff2");
}
html {
font-family: Inter;
font-size: 16px;
}
</style>
</head>
<body>
<h1>Invoice {{ invoiceNumber }}</h1>
<div style="display: flex; justify-content: space-between">
<div>
{{#companyDetails}} {{ . }}<br />
{{/companyDetails}}
</div>
<div>
{{#customerDetails}} {{ . }}<br />
{{/customerDetails}}
</div>
</div>
<div style="margin-top: 7em">
<table style="width: 100%">
<tbody>
<tr style="font-weight: bold">
<td style="width: 40%">Item</td>
<td style="width: 20%; text-align: right">Price per unit</td>
<td style="width: 10%; text-align: right">Qty</td>
<td style="width: 20%; text-align: right">Price</td>
</tr>
{{#items}}
<tr>
<td>{{ item }}</td>
<td style="text-align: right">{{ pricePerUnit }}$</td>
<td style="text-align: right">{{ quantity }}</td>
<td style="text-align: right">{{ price }}$</td>
</tr>
{{/items}}
<tr style="height: 5em; vertical-align: bottom">
<td></td>
<td></td>
<td style="font-weight: bold; text-align: right">Total</td>
<td style="text-align: right">{{ total }}$</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>