forked from NeonSwan/nexudus-spaces-default-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvoice.htm
200 lines (192 loc) · 6.72 KB
/
invoice.htm
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
<html>
<head>
<title>Invoice. {{ data.Local.Invoice.InvoiceNumber }}</title>
<link href="/Content/themes/admin/css/Invoice.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="block-content">
<div class="float-right" style="margin-top:-43px">
<button type="button"><img src="/Content/themes/admin/images/icons/fugue/printer.png" width="16" height="16"> Print</button>
</div>
<div id="invoice" class="pagestyle">
<div id="invoice-header">
{% if data.Local.Invoice.Business.HasLogo %}
<img class="logo" src="{% Url Business, GetLogo, h: 100 %}">
{% else %}
<div class="title" class="logo" style="font-size: 4em; color: Black; font-family: Open Sans, sans-serif;">{{ data.Local.Invoice.Business.Name }}</div>
{% endif %}
<div class="vcard" id="company-address">
<div class="fn org">
<strong>{{ data.Local.Invoice.Business.Name }}</strong>
</div>
<div class="adr">
<div class="street-address">
{{ data.Local.TaxIDCode }}
</div>
<div class="street-address">
{{ data.Local.BillToAddress | NewlineToBr }}
</div>
<div class="locality">
{{ data.Local.BillToCity }}
</div>
<div id="company-postcode">
<span class="postal-code">{{ data.Local.BillToPostCode }}</span>
</div>
</div>
</div>
</div>
<div id="invoice-info">
<h2>
Invoice
<strong>{{ data.Local.Invoice.InvoiceNumber }}</strong></h2>
<h3>
{{ data.Local.Invoice.CreatedOn | Date: 'D' }}</h3>
<p id="invoice-total">
{{ data.Local.Invoice.TotalAmount | FormatDecimal: '0.00' }}</p>
<p id="payment-due">
{% if data.Local.Invoice.Paid == false %}
Due:
{{ data.Local.Invoice.DueDate | Date: 'D' }}
{% else %}
Paid
{{ data.Local.Invoice.PaidOn | Date: 'D' }}
{% endif %}
</p>
</div>
<div class="vcard" id="client-details">
<div class="org">
{{ data.Local.Invoice.BillToName }}
</div>
<div class="adr">
<div class="street-address">
{{ data.Local.Invoice.BillToTaxIDNumber }}
</div>
<div class="street-address">
{{ data.Local.Invoice.BillToAddress | NewLineToBr }}
</div>
<div class="locality">
{{ data.Local.Invoice.BillToCity }}
</div>
<div id="client-postcode">
<span class="postal-code">{{ data.Local.Invoice.BillToPostCode }}</span>
</div>
</div>
</div>
<table id="invoice-amount">
<thead>
<tr id="header_row">
<th class="quantity_th">
{% T Quantity %}
</th>
<th class="details_notax_th">
{% T Details %}
</th>
<th class="unitprice_th">
{% T Unit Price %}
</th>
<th class="subtotal_th">
{% T SubTotal %}
</th>
<th class="subtotal_th">
{% T Tax %}
</th>
</tr>
</thead>
<tfoot>
{% for taxCat in data.Local.Invoice.TaxCategories %}
<tr id="">
<td colspan="2">
</td>
<td colspan="1" class="total" id="total_currency">
{% T Tax %}
({{ taxCat.Rate | FormatDecimal: '0.00' }}%)
</td>
<td class="total" id="total_amount">
{{ taxCat.TaxSubTotal | FormatDecimal: '0.00' }}
</td>
<td> </td>
</tr>
{% endfor %}
<tr id="total_tr">
<td colspan="2">
</td>
<td colspan="1" class="total" id="Td1">
{{ data.Local.Invoice.TotalAmount | FormatDecimal: '0.00' }}
(<span class="currency">{{ data.Local.Invoice.Currency.Code }}</span>)
</td>
<td class="total" id="Td2">
{{ data.Local.Invoice.TotalAmount | FormatDecimal: '0.00' }}
</td>
<td> </td>
</tr>
{% if data.Local.Invoice.Paid %}
<tr id="settlement_tr">
<td colspan="3" class="item_r">
{% T Paid On %}
{{ data.Local.Invoice.PaidOn | Date: 'D' }}
</td>
<td class="item_r">
{{ data.Local.Invoice.TotalAmount | FormatDecimal: '0.00' }}
</td>
<td> </td>
</tr>
{% else %}
<tr id="due_tr">
<td colspan="3" class="total">
Due
(<span class="currency">{{ data.Local.Invoice.Currency.Code }}</span>)
</td>
<td class="total">
{{ data.Local.Invoice.TotalAmount | FormatDecimal: '0.00' }}
</td>
<td> </td>
</tr>
{% endif %}
</tfoot>
<tbody id="invoice_items">
{% for line in data.Local.Invoice.Lines %}
<tr data-model="invoice_item" class="item odd" id="invoice_item_{{ data.Local.Invoice.Id }}">
<td class="item_l quantity_td">
{{ line.Quantity }}
</td>
<td class="item_l description_td">
{{ line.Description }}
</td>
<td class="item_r price_td">
{{ line.UnitPrice | FormatDecimal: '0.00' }}
</td>
<td class="item_r subtotal_td">
{{ line.SubTotal | FormatDecimal: '0.00' }}
</td>
<td class="item_r subtotal_td">
{{ line.TaxPercentage | FormatDecimal: '0.00' }}%
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div id="payment-details">
<h2>
{% T Payment Details %}</h2>
<div id="bank_name">
{{ data.Local.BankName }}
</div>
<div id="bank-code">
<strong>{% T Bank Code %}</strong>
{{ data.Local.BankCode }} </div>
<div id="sort-code">
<strong>{% T Sort code %}</strong>
{{ data.Local.SortCode }} </div>
<div id="account-number">
<strong>{% T Account Number %}</strong>
{{ data.Local.AccountNumber }} </div>
<div id="payment-reference">
<strong>{% T Payment reference %}</strong> {{ data.Local.Invoice.PaymentReference }}</div>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>