-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoice.htm
229 lines (221 loc) · 8.42 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<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.Setting_Billing_BillToName }}</strong>
</div>
<div class="adr">
<div class="street-address">
{{ data.Local.TaxIDCode }}
</div>
<div class="street-address">
{{ data.Local.BillToAddress | Replace: 'Not Available', '' | NewlineToBr }}
</div>
<div class="locality">
{{ data.Local.BillToCity | Replace: 'Not Available', '' }}
</div>
<div id="company-postcode">
<span class="postal-code">{{ data.Local.BillToPostCode | Replace: 'Not Available', '' }}</span>
</div>
</div>
</div>
</div>
<div id="invoice-info" style="width: 400px">
<h2>
{% if data.Local.Invoice.Draft %}
{% T Draft Invoice %}
{% else %}
{% if data.Local.Invoice.TotalAmount >= 0 %}
{% T Invoice %}
{% else %}
{% T Credit Note %}
{% endif %}
{% endif %}
<strong>{{ data.Local.Invoice.InvoiceNumber }}</strong></h2>
<p>{{ data.Local.Invoice.CreatedOn | Date: 'D' }}</p>
<br/>
{% if data.Local.Invoice.PurchaseOrder.size > 0%}
<strong>{% T Purchase Order %}</strong>: {{ data.Local.Invoice.PurchaseOrder }}
{% endif %}
{% if data.Local.Invoice.InvoiceFromDate %}
<strong>{% T Period %}</strong>:
{{ data.Local.Invoice.InvoiceFromDate | Date: 'M' }}
-
{{ data.Local.Invoice.InvoiceToDate | Date: 'M' }}
{% endif %}
<p id="invoice-total">
</p>
<p id="payment-due">
{% if data.Local.Invoice.Paid == false %}
<strong>{% T Due %}</strong>:
{{ data.Local.Invoice.DueDate | Date: 'D' }}
{% else %}
<strong>{% T Paid %}</strong>:
{{ data.Local.Invoice.PaidOn | Date: 'D' }}
{% endif %}
</p>
</div>
<div class="vcard" id="client-details">
<div class="org">
{{ data.Local.Invoice.BillToName | Replace: 'Not Available', '' }}
</div>
<div class="adr">
<div class="street-address">
{{ data.Local.Invoice.BillToTaxIDNumber | Replace: 'Not Available', '' }}
</div>
<div class="street-address">
{{ data.Local.Invoice.BillToAddress | Replace: 'Not Available', '' | NewlineToBr }}
</div>
<div class="locality">
{{ data.Local.Invoice.BillToCity | Replace: 'Not Available', '' }}
</div>
<div id="client-postcode">
<span class="postal-code">{{ data.Local.Invoice.BillToPostCode | Replace: 'Not Available', '' }}</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>
<tr>
<td colspan="2">
</td>
<td colspan="1" class="total" id="Td1">
{% T Subtotal %}
(<span class="currency">{{ data.Local.Invoice.Currency.Code }}</span>)
</td>
<td class="total" id="Td2">
{{ data.Local.Invoice.TotalAmount | Minus: data.Local.Invoice.TaxAmount | FormatDecimal: 'N' }}
</td>
<td> </td>
</tr>
{% 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: 'N' }}%)
</td>
<td class="total" id="total_amount">
{{ taxCat.TaxSubTotal | FormatDecimal: 'N' }}
</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: 'N' }}
(<span class="currency">{{ data.Local.Invoice.Currency.Code }}</span>)
</td>
<td class="total" id="Td2">
{{ data.Local.Invoice.TotalAmount | FormatDecimal: 'N' }}
</td>
<td> </td>
</tr>
{% for payment in data.Local.Invoice.Payments %}
<tr id="settlement_tr">
<td colspan="3" class="item_r">
{% T Paid On %}
{{ payment.PaymentDate | Date: 'D' }} ({{ payment.PaymentGatewayName | Replace: 'MultiGateway', 'Card' | Replace: 'Manual', 'Credit' }})
</td>
<td class="item_r">
{{ payment.Credit | FormatDecimal: 'N' }}
</td>
<td> </td>
</tr>
{% endfor %}
<tr id="due_tr">
<td colspan="3" class="total">
{% T Due %}
(<span class="currency">{{ data.Local.Invoice.Currency.Code }}</span>)
</td>
<td class="total">
{{ data.Local.Invoice.DueAmount | FormatDecimal: 'N' }}
</td>
<td> </td>
</tr>
</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: 'N' }}
</td>
<td class="item_r subtotal_td">
{{ line.SubTotal | FormatDecimal: 'N' }}
</td>
<td class="item_r subtotal_td">
{{ line.TaxPercentage | FormatDecimal: 'N' }}%
</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>