c86414a99bac5c726f53295ef4ce1c4514212655
[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="is_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="!is_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="has_statement_id">
53                     <button class="button_back_to_statement">Back to statement</button>
54                     <button class="button_close_statement">Close the statement</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"><t t-esc="line.partner_name"/></span>
68                             <div class="change_partner_container oe_form"></div>
69                         </caption>
70                         <tbody class="tbody_initial_line">
71                             <tr class="initial_line">
72                                 <td class="cell_action"><span class="toggle_match glyphicon glyphicon-cog"></span></td>
73                                 <td class="cell_account_code"><t t-esc="line.account_code"/></td>
74                                 <td class="cell_due_date"><t t-esc="line.date"/></td>
75                                 <td class="cell_label"><t t-if="line.name" t-esc="line.name"/>
76                                     <t t-if="line.amount_currency_str"> (<t t-esc="line.amount_currency_str"/>)</t></td>
77                                 <td class="cell_debit"><t t-if="line.amount &gt; 0">
78                                       <t t-esc="line.amount_str"/></t></td>
79                                 <td class="cell_credit"><t t-if="line.amount &lt; 0">
80                                       <t t-esc="line.amount_str"/></t></td>
81                                 <td class="cell_info_popover"><span class="line_info_button glyphicon glyphicon-info-sign" t-att-data-content="line.q_popover"></span></td>
82                             </tr>
83                         </tbody>
84                         <tbody class="tbody_matched_lines"></tbody>
85                         <tbody class="tbody_created_lines"></tbody>
86                         <tbody class="tbody_open_balance"></tbody>
87                     </table>
88                 </td>
89             </tr>
90             <tr>
91                 <td>
92                     <div class="action_pane match">
93                         <div class="match_controls">
94                             <input type="text" class="filter" placeholder="Filter" value="" />
95                             <span class="pager_control_right pull-right glyphicon glyphicon-chevron-right"></span>
96                             <span class="pager_control_left pull-right glyphicon glyphicon-chevron-left"></span>
97                         </div>
98                         <table></table>
99                     </div>
100
101                     <div class="action_pane create">
102                         <!-- NB : I use a .quick_add:empty selector. whitespace characters being a node, there shall be none -->
103                         <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>
104                         <div class="oe_form create_form">
105                             <!-- here come some form_create_field -->
106                             <table class="create_field add_line_container"><tr><td><a href="javascript:void(0)" class="add_line">New</a></td></tr></table>
107                         </div>
108                     </div>
109                 </td>
110             </tr>
111         </table>
112     </t>
113
114     <t t-name="filter_no_match">
115         <tr><td style='text-align: center;'>No result matching '<t t-esc="filter_str" />'</td></tr>
116     </t>
117
118     <t t-name="form_create_field">
119         <table t-att-class='"create_field create_"+id'><tr>
120             <th><t t-esc="label"/></th>
121             <td class="create_account_container" t-att-class='"create_"+id+"_container"'></td>
122         </tr></table>
123     </t>
124
125     <t t-name="bank_statement_reconciliation_line_details">
126         <table class='details'>
127             <tr><td>Date</td><td><t t-esc="line.date"/></td></tr>
128             <tr t-if="line.partner_name"><td>Partner</td><td><t t-esc="line.partner_name"/></td></tr>
129             <tr t-if="line.ref"><td>Transaction</td><td><t t-esc="line.ref"/></td></tr>
130             <tr><td>Description</td><td><t t-esc="line.name"/></td></tr>
131             <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>
132             <tr><td>Account</td><td><t t-esc="line.account_code"/> <t t-esc="line.account_name"/></td></tr>
133         </table>
134     </t>
135
136     <t t-name="bank_statement_reconciliation_move_line">
137         <tr class="mv_line" t-att-data-lineid="line.id" t-att-data-selected="selected">
138             <td class="cell_action"><span class="glyphicon glyphicon-add-remove"></span></td>
139             <td class="cell_account_code" t-if="line.account_code"><t t-esc="line.account_code"/></td>
140             <td class="cell_due_date"><t t-esc="line.q_due_date"/></td>
141             <td class="cell_label js_qlabel"><t t-esc="line.q_label"/></td>
142             <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>
143             <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>
144             <td class="cell_info_popover"><span class="line_info_button glyphicon glyphicon-info-sign" t-att-data-content="line.q_popover"></span></td>
145         </tr>
146     </t>
147
148     <t t-name="icon_do_partial_reconciliation"><i class="do_partial_reconcile_button fa fa-exclamation-triangle" data-content="This move's amount is higher than the transaction's amount. Click to do a partial reconciliation"></i></t>
149
150     <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>
151
152     <t t-name="bank_statement_reconciliation_move_line_details">
153         <table class='details'>
154             <tr><td>id</td><td><t t-esc="line.id" /></td></tr>
155             <tr t-if="line.account_code"><td>Account</td><td><t t-esc="line.account_code"/> <t t-esc="line.account_name"/></td></tr>
156             <tr><td>Journal</td><td><t t-esc="line.journal_name"/></td></tr>
157             <tr><td>Period</td><td><t t-esc="line.period_name"/></td></tr>
158             <tr><td>Date</td><td><t t-esc="line.date"/></td></tr>
159             <tr><td>Due Date</td><td><t t-esc="line.q_due_date"/></td></tr>
160             <tr><td>Amount</td>
161                 <td><t t-if="line.debit !== 0" t-esc="line.debit_str"/><t t-if="line.credit !== 0" t-esc="line.credit_str"/>
162                     <t t-if="line.amount_currency_str"> (<t t-esc="line.amount_currency_str"/>)</t>
163                 </td></tr>
164         </table>
165     </t>
166
167     <t t-name="bank_statement_reconciliation_created_line">
168         <tr class="created_line" t-att-data-lineid="line.id">
169             <td class="cell_action"><t t-if="! line.no_remove_action"><span class="line_remove_button glyphicon glyphicon-remove"></span></t></td>
170             <td class="cell_account_code"><t t-esc="line.account_num"/></td>
171             <td class="cell_due_date"></td>
172             <td class="cell_label"><t t-esc="line.label"/></td>
173             <td class="cell_debit"><t t-if="line.amount &lt; 0"><t t-esc="line.amount_str"/></t></td>
174             <td class="cell_credit"><t t-if="line.amount &gt; 0"><t t-esc="line.amount_str"/></t></td>
175             <td class="cell_info_popover"></td>
176         </tr>
177     </t>
178
179     <t t-name="bank_statement_reconciliation_line_open_balance">
180         <tr class="line_open_balance">
181             <td class="cell_action"><span class="toggle_create glyphicon glyphicon-play"></span></td>
182             <td class="cell_account_code"><t t-esc="account_code"/></td>
183             <td class="cell_due_date"></td>
184             <td class="cell_label js_open_balance">Open balance</td>
185             <td class="cell_debit"><t t-esc="debit"/></td>
186             <td class="cell_credit"><t t-esc="credit"/></td>
187             <td class="cell_info_popover"></td>
188         </tr>
189     </t>
190 </templates>