-
Notifications
You must be signed in to change notification settings - Fork 0
/
report_invoice_document.xml
195 lines (155 loc) · 7.55 KB
/
report_invoice_document.xml
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
<?xml version="1.0"?>
<t t-name="report_invoice_document">
<t t-call="report.external_layout">
<div class="page" style="font-size: 1.2em;">
<div class="row mt32 mb32">
<br />
<span t-if="o.date_invoice"><strong>Date: </strong><span t-field="o.date_invoice"/></span>
<br />
<div class="col-xs-0" t-if="o.name">
<strong>Your Ref:</strong>
<span t-field="o.name"/>
<br />
<span t-if="o.origin"><strong>Our Ref: </strong><span t-field="o.origin"/></span>
</div>
<!-- info client -->
<div class="col-xs-8 col-xs-offset-8" >
<address t-field="o.partner_id" t-field-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}"/>
<span t-if="o.partner_id.vat">TIN: <span t-field="o.partner_id.vat"/></span>
</div>
<div class="col-xs-2" t-if="o.partner_id.ref">
<strong>Customer Code:</strong>
<span t-field="o.partner_id.ref"/>
</div>
</div>
<h2>
<span t-if="o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')">Invoice</span>
<span t-if="o.type == 'out_invoice' and o.state == 'proforma2'">PRO-FORMA <span t-if="o.number">N<sup>o</sup> <span t-field="o.number"/></span> </span>
<span t-if="o.type == 'out_invoice' and o.state == 'draft'">Draft Invoice</span>
<span t-if="o.type == 'out_invoice' and o.state == 'cancel'">Cancelled Invoice</span>
<span t-if="o.type == 'out_refund'">Refund</span>
<span t-if="o.type == 'in_refund'">Supplier Refund</span>
<span t-if="o.type == 'in_invoice'">Supplier Invoice</span>
<span t-field="o.number"/>
</h2>
<br />
<table class="table table-condensed" border="1px" width="100%">
<thead>
<tr>
<th class="text-left">Item</th>
<th class="text-left">Description</th>
<th class="text-center">Quantity</th>
<th class="text-center">UoM</th>
<th class="text-right">Unit Price</th>
<th class="text-right">Amount</th>
</tr>
</thead>
<tbody class="invoice_tbody">
<tr t-foreach="o.invoice_line" t-as="l">
<td class="text-left">
<span t-if="l.item_number"><t t-esc="l.item_number" /></span>
</td>
<td class="text-left">
<span t-field="l.name"/>
</td>
<td class="text-center">
<span t-field="l.quantity"/>
</td>
<td class="text-center" width="10%">
<span t-field="l.uos_id" groups="product.group_uom"/>
</td>
<td class="text-right">
<span t-field="l.price_unit"/>
</td>
<td class="text-right">
<span t-field="l.price_subtotal" t-field-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
</td>
</tr>
</tbody>
</table>
<div class="row">
<!-- tableau pour les information Banquaire -->
<div class="col-xs-8 pull-left">
<table class="table table-condensed">
<tr class="border-black">
<td><strong>Bank code</strong></td>
<td><strong>Branch Account Number</strong></td>
</tr>
<tbody>
<tr>
<td><span t-field="o.partner_bank_id.bank_bic" /></td>
<td><span t-field="o.partner_bank_id.acc_number" /></td>
</tr>
</tbody>
</table>
<!-- Fin tableau Banque -->
</div>
<div class="col-xs-4 pull-right">
<table class="table table-condensed">
<tr class="border-black">
<td><strong>Total Without Taxes</strong></td>
<td class="text-right">
<span t-field="o.amount_untaxed" t-field-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
</td>
</tr>
<tr>
<td>TVA 19,25%</td>
<td class="text-right">
<span t-field="o.amount_tax" t-field-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
</td>
</tr>
<tr class="border-black">
<td><strong>Total TTC</strong></td>
<td class="text-right">
<span t-field="o.amount_total" t-field-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
</td>
</tr>
<t t-if="o.state == 'open' or o.state == 'paid'">
<tr class="border-black">
<td>Paid to date</td>
<td class="text-right">
<span t-esc="o.amount_total-o.residual" t-esc-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
</td>
</tr>
<tr>
<td><strong>Balance amount</strong></td>
<td class="text-right">
<span t-field="o.residual" t-field-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
</td>
</tr>
</t>
</table>
</div>
</div>
<br></br>
<p style="text-align:center; text-transform: uppercase;">
<strong>Hold this invoice at the total sum of:: </strong>
<span t-esc="o.get_amount_letter()"/>.
</p>
<br></br>
<br></br>
<div class="row" t-if="o.tax_line">
<div class="col-xs-6">
</div>
</div>
<p t-if="o.comment">
<strong>Comment:</strong>
<span t-field="o.comment"/>
</p>
<p t-if="o.payment_term.note">
<strong>Payment Term:</strong>
<span t-field="o.payment_term.note"/>
</p>
<p t-if="o.fiscal_position.note">
<strong>Fiscal Position Remark:</strong>
<span t-field="o.fiscal_position.note"/>
</p>
<br></br><br></br>
<div class="row">
<div class="col-xs-10">
<strong><p class="text-right">THE MANAGEMENT</p></strong>
</div>
</div>
</div>
</t>
</t>