a85a8f1f6b3910ae0f8de468002ad9c51db997c2
[odoo/odoo.git] / addons / account / static / src / xml / account_bank_statement_reconciliation.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <templates xml:space="preserve">
4
5     <t t-name="bank_statement_nothing_to_reconcile">
6         <div class="oe_form_sheetbg"><div class="oe_form_sheet oe_form_sheet_width">
7             <div class="oe_view_nocontent"><p>
8                 <b>Good Job!</b> Bank statements are fully reconciled.</p>
9                 <p>This page displays all the bank transactions that are to be reconciled and provides with a neat interface to do so.</p>
10             </div>
11         </div></div>
12     </t>
13
14     <t t-name="bank_statement_reconciliation">
15         <div class="oe_form_sheetbg"><div class="oe_form_sheet oe_form_sheet_width">
16             <t t-if="single_statement">
17                 <h1 class="statement_name">
18                     <span><t t-esc="title"/></span>
19                     <table class="change_statement_name_container oe_form"><tr>
20                         <td><input class="change_statement_name_field" type="text"/></td>
21                         <td><button class="change_statement_name_button oe_highlight">OK</button></td>
22                     </tr></table>
23                 </h1>
24             </t>
25             <t t-if="!single_statement">
26                 <h1><t t-esc="title"/></h1>
27             </t>
28             <div class="progress progress-striped">
29                 <div class="progress-text"><span class="valuenow">0</span> / <span class="valuemax"><t t-esc="total_lines"/></span></div>
30                 <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" t-att-aria-valuemax="total_lines" style="width: 0%;">
31                 </div>
32             </div>
33             <div class="oe_clear"></div>
34             <div class="reconciliation_lines_container"></div>
35             <p class='protip'>Tip : Hit ctrl-enter to validate the whole sheet.</p>
36         </div></div>
37     </t>
38
39     <t t-name="bank_statement_reconciliation_done_message">
40         <div class='done_message'>
41             <h2><t t-raw="title" /></h2>
42             <p>It took you <strong><t t-esc="time_taken" /></strong> to reconcile <strong><t t-esc="transactions_done" /> transactions.<br/></strong> That's on average <t t-esc="sec_per_item" /> seconds per transaction.</p>
43             <t t-if="done_with_ctrl_enter !== 0">
44                 <p>You validated <t t-esc="done_with_ctrl_enter" /> reconciliations with the ctrl-enter shortcut.</p>
45             </t>
46             <p class='achievements'>
47                 <t t-foreach="achievements" t-as="achievement">
48                     <i class='fa fa-certificate achievement' t-att-data-title='achievement.title' t-att-data-content='achievement.desc'><i t-att-class="'fa '+achievement.icon"></i></i>
49                 </t>
50             </p>
51             <p class="action_buttons">
52                 <t t-if="single_statement or multiple_statements">
53                     <button class="button_back_to_statement">Back to statements list</button>
54                     <button class="button_close_statement">Close the statement<t t-if="multiple_statements">s</t></button>
55                 </t>
56             </p>
57         </div>
58     </t>
59
60     <t t-name="bank_statement_reconciliation_line">
61         <table t-att-data-mode="mode">
62             <tr>
63                 <td>
64                     <table class="accounting_view">
65                         <caption>
66                             <button class="button_ok"></button>
67                             <span t-if="! line.has_no_partner" class="partner_name">
68                                 <t t-esc="line.partner_name"/>
69                                 <span class="change_partner glyphicon glyphicon-pencil"></span>
70                             </span>
71                             <div class="change_partner_container oe_form"></div>
72                         </caption>
73                         <tbody class="tbody_initial_line">
74                             <tr class="initial_line">
75                                 <td class="cell_action"><span class="toggle_match glyphicon glyphicon-cog"></span></td>
76                                 <td class="cell_account_code"><t t-esc="line.account_code"/></td>
77                                 <td class="cell_due_date"><t t-esc="line.date"/></td>
78                                 <td class="cell_label">
79                                     <t t-if="line.name" t-esc="line.name"/>
80                                     <t t-if="line.ref"> : <t t-esc="line.ref" /></t>
81                                     <t t-if="line.amount_currency_str"> (<t t-esc="line.amount_currency_str"/>)</t></td>
82                                 <td class="cell_debit"><t t-if="line.amount &gt; 0">
83                                       <t t-esc="line.amount_str"/></t></td>
84                                 <td class="cell_credit"><t t-if="line.amount &lt; 0">
85                                       <t t-esc="line.amount_str"/></t></td>
86                                 <td class="cell_info_popover"><span class="line_info_button glyphicon glyphicon-info-sign" t-att-data-content="line.q_popover"></span></td>
87                             </tr>
88                         </tbody>
89                         <tbody class="tbody_matched_lines"></tbody>
90                         <tbody class="tbody_created_lines"></tbody>
91                         <tbody class="tbody_open_balance"></tbody>
92                     </table>
93                 </td>
94             </tr>
95             <tr>
96                 <td>
97                     <div class="action_pane match">
98                         <div class="match_controls">
99                             <input type="text" class="filter" placeholder="Filter" value="" />
100                             <span class="pager_control_right pull-right glyphicon glyphicon-chevron-right"></span>
101                             <span class="pager_control_left pull-right glyphicon glyphicon-chevron-left"></span>
102                         </div>
103                         <table></table>
104                     </div>
105
106                     <div class="action_pane create">
107                         <!-- NB : I use a .quick_add:empty selector. whitespace characters being a node, there shall be none -->
108                         <div class="quick_add btn-group btn-group-sm"><t t-foreach="presets" t-as="preset"><button type='button' class='btn btn-default preset' t-att-data-presetid="preset.id"><t t-esc="preset.name"/></button></t></div>
109                         <div class="oe_form create_form">
110                             <!-- here come some form_create_field -->
111                             <table class="create_field add_line_container"><tr><td><a href="javascript:void(0)" class="add_line">New</a></td></tr></table>
112                         </div>
113                     </div>
114                 </td>
115             </tr>
116         </table>
117     </t>
118
119     <t t-name="filter_no_match">
120         <tr><td style='text-align: center;'>No result matching '<t t-esc="filter_str" />'</td></tr>
121     </t>
122
123     <t t-name="form_create_field">
124         <table t-att-class='"create_field create_"+id'><tr>
125             <th><t t-esc="label"/></th>
126             <td class="create_account_container" t-att-class='"create_"+id+"_container"'></td>
127         </tr></table>
128     </t>
129
130     <t t-name="bank_statement_reconciliation_line_details">
131         <table class='details'>
132             <tr><td>Date</td><td><t t-esc="line.date"/></td></tr>
133             <tr t-if="line.partner_name"><td>Partner</td><td><t t-esc="line.partner_name"/></td></tr>
134             <tr t-if="line.ref"><td>Transaction</td><td><t t-esc="line.ref"/></td></tr>
135             <tr><td>Description</td><td><t t-esc="line.name"/></td></tr>
136             <tr><td>Amount</td><td><t t-esc="line.amount_str"/><t t-if="line.amount_currency_str"> (<t t-esc="line.amount_currency_str"/>)</t></td></tr>
137             <tr><td>Account</td><td><t t-esc="line.account_code"/> <t t-esc="line.account_name"/></td></tr>
138         </table>
139     </t>
140
141     <t t-name="bank_statement_reconciliation_move_line">
142         <tr class="mv_line" t-att-data-lineid="line.id" t-att-data-selected="selected">
143             <td class="cell_action"><span class="glyphicon glyphicon-add-remove"></span></td>
144             <td class="cell_account_code" t-if="line.account_code"><t t-esc="line.account_code"/></td>
145             <td class="cell_due_date"><t t-esc="line.q_due_date"/></td>
146             <td class="cell_label js_qlabel"><t t-esc="line.q_label"/></td>
147             <td class="cell_debit"><t t-if="line.debit !== 0"><t t-if="line.propose_partial_reconcile" t-call="icon_do_partial_reconciliation"></t><t t-if="line.partial_reconcile" t-call="icon_undo_partial_reconciliation"></t><t t-esc="line.debit_str"/></t></td>
148             <td class="cell_credit"><t t-if="line.credit !== 0"><t t-if="line.propose_partial_reconcile"><t t-call="icon_do_partial_reconciliation" /></t><t t-if="line.partial_reconcile"><t t-call="icon_undo_partial_reconciliation" /></t><t t-esc="line.credit_str"/></t></td>
149             <td class="cell_info_popover"><span class="line_info_button glyphicon glyphicon-info-sign" t-att-data-content="line.q_popover"></span></td>
150         </tr>
151     </t>
152
153     <t t-name="icon_do_partial_reconciliation"><i class="do_partial_reconcile_button fa fa-exclamation-triangle" data-content="Click to register a partial payment and keep the invoice open. Otherwise it does a full reconciliation."></i></t>
154
155     <t t-name="icon_undo_partial_reconciliation"><i class="undo_partial_reconcile_button fa fa-exclamation-triangle" data-content="Undo the partial reconciliation."></i></t>
156
157     <t t-name="bank_statement_reconciliation_move_line_details">
158         <table class='details'>
159             <tr t-if="line.account_code"><td>Account</td><td><t t-esc="line.account_code"/> <t t-esc="line.account_name"/></td></tr>
160             <tr><td>Journal</td><td><t t-esc="line.journal_name"/></td></tr>
161             <tr><td>Period</td><td><t t-esc="line.period_name"/></td></tr>
162             <tr><td>Date</td><td><t t-esc="line.date"/></td></tr>
163             <tr><td>Due Date</td><td><t t-esc="line.q_due_date"/></td></tr>
164             <t t-if="line.is_partially_reconciled">
165                 <tr><td>Total</td><td>
166                     <t t-esc="line.total_amount_str"/><t t-if="line.total_amount_currency_str"> (<t t-esc="line.total_amount_currency_str"/>)</t>
167                 </td></tr>
168             </t>
169             <tr><td><t t-if="line.is_partially_reconciled">Residual</t><t t-if="! line.is_partially_reconciled">Amount</t></td><td>
170                 <t t-if="line.debit !== 0" t-esc="line.debit_str"/><t t-if="line.credit !== 0" t-esc="line.credit_str"/>
171                 <t t-if="line.amount_currency_str"> (<t t-esc="line.amount_currency_str"/>)</t>
172             </td></tr>
173         </table>
174     </t>
175
176     <t t-name="bank_statement_reconciliation_created_line">
177         <tr class="created_line" t-att-data-lineid="line.id">
178             <td class="cell_action"><t t-if="! line.no_remove_action"><span class="line_remove_button glyphicon glyphicon-remove"></span></t></td>
179             <td class="cell_account_code"><t t-esc="line.account_num"/></td>
180             <td class="cell_due_date"></td>
181             <td class="cell_label"><t t-esc="line.label"/></td>
182             <td class="cell_debit"><t t-if="line.amount &lt; 0"><t t-esc="line.amount_str"/></t></td>
183             <td class="cell_credit"><t t-if="line.amount &gt; 0"><t t-esc="line.amount_str"/></t></td>
184             <td class="cell_info_popover"></td>
185         </tr>
186     </t>
187
188     <t t-name="bank_statement_reconciliation_line_open_balance">
189         <tr class="line_open_balance">
190             <td class="cell_action"><span class="toggle_create glyphicon glyphicon-play"></span></td>
191             <td class="cell_account_code"><t t-esc="account_code"/></td>
192             <td class="cell_due_date"></td>
193             <td class="cell_label js_open_balance">Open balance</td>
194             <td class="cell_debit"><t t-esc="debit"/></td>
195             <td class="cell_credit"><t t-esc="credit"/></td>
196             <td class="cell_info_popover"></td>
197         </tr>
198     </t>
199 </templates>