[Flask] Simple ERP for a farm.
1
{# -*- mode: web; -*- #}
2
3
<!doctypehtml>
4
5
<htmllang="en">
6
<head>
7
<metacharset="utf-8">
8
<metaname="viewport"content="width=device-width, initial-scale=1, shrink-to">
9
<title>invoice {{ invoice.date_billed }} for {{ invoice.customer.name }} {{ invoice.primary_key }}</title>
10
<metaname="author"content="Marius Peter">
11
<metaname="description"content="A new invoice for your project.">
12
<!-- <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}"> -->
13
<linkrel="stylesheet"href="{{ url_for('static', filename='styles/invoice.css') }}">
14
</head>
15
<body>
16
<divid="content">
17
<headerclass="clearfix">
18
<divid="logo">
19
<imgsrc="{{ url_for('static', filename='img/logo.png') }}">
20
</div>
21
<divid="company">
22
<h2class="name">FAPG</h2>
23
<div>Route de Versonnex</div>
24
<div>(602) 519-0450</div>
25
<div><ahref="mailto:company@example.com">company@example.com</a></div>
26
</div>
27
28
</header>
29
<main>
30
<divid="details"class="clearfix">
31
<divid="client">
32
<divclass="to">INVOICE TO:</div>
33
<h2class="name">{{ invoice.customer.name }}</h2>
34
<divclass="address">{{ invoice.customer.address }}</div>
35
{% if invoice.customer.email %}
36
<divclass="email"><ahref="mailto:{{ invoice.customer.email }}">{{ invoice.customer.email }}</a></div>
37
{% endif %}
38
</div>
39
<divid="invoice">
40
<h1>INVOICE {{ invoice.invoice_id_alt }}</h1>
41
<divclass="date">Date of Invoice: {{ invoice.date_billed }}</div>
42
<divclass="date">Due Date: {{ invoice.date_due }}</div>
43
</div>
44
</div>
45
<tablecellspacing="0"cellpadding="0"border="0">
46
<thead>
47
<tr>
48
<thclass="no">#</th>
49
<thclass="desc">DESCRIPTION</th>
50
<thclass="unit">UNIT PRICE</th>
51
<thclass="qty">QUANTITY</th>
52
<thclass="total">TOTAL</th>
53
</tr>
54
</thead>
55
<tbody>
56
<tr>
57
<tdclass="no">01</td>
58
<tdclass="desc"><h3>Website Design</h3>Creating a recognizable design solution based on the company's existing visual identity</td>
59
<tdclass="unit">$40.00</td>
60
<tdclass="qty">30</td>
61
<tdclass="total">$1,200.00</td>
62
</tr>
63
<tr>
64
<tdclass="no">02</td>
65
<tdclass="desc"><h3>Website Development</h3>Developing a Content Management System-based Website</td>
66
<tdclass="unit">$40.00</td>
67
<tdclass="qty">80</td>
68
<tdclass="total">$3,200.00</td>
69
</tr>
70
<tr>
71
<tdclass="no">03</td>
72
<tdclass="desc"><h3>Search Engines Optimization</h3>Optimize the site for search engines (SEO)</td>
73
<tdclass="unit">$40.00</td>
74
<tdclass="qty">20</td>
75
<tdclass="total">$800.00</td>
76
</tr>
77
</tbody>
78
<tfoot>
79
<tr>
80
<tdcolspan="2"></td>
81
<tdcolspan="2">SUBTOTAL</td>
82
<td>$5,200.00</td>
83
</tr>
84
<tr>
85
<tdcolspan="2"></td>
86
<tdcolspan="2">TAX 25%</td>
87
<td>$1,300.00</td>
88
</tr>
89
<tr>
90
<tdcolspan="2"></td>
91
<tdcolspan="2">GRAND TOTAL</td>
92
<td>$6,500.00</td>
93
</tr>
94
</tfoot>
95
</table>
96
<divid="thanks">Thank you!</div>
97
<divid="notices">
98
<div>NOTICE:</div>
99
<divclass="notice">A finance charge of 1.5% will be made on unpaid balances after 30 days.</div>
100
</div>
101
</main>
102
<footer>
103
Invoice was created on a computer and is valid without the signature and seal.
104
</footer>
105
106
</div>
107
</body>
108
</html>
109