6 <style type="text/css">
12 border-top: solid black;
16 border-bottom: solid black;
19 #content.html-menu { height: 100%; }
26 <div class="listtop">[% title %]</div>
28 [%- INCLUDE 'common/flash.html' %]
30 <form id="reconciliation_form" method="post" action="controller.pl" style="height:100%">
33 <th align="right">[% 'Bank account' | $T8 %]</th>
34 <td>[% L.select_tag('filter.local_bank_account_id:number',
36 default=FORM.filter.local_bank_account_id_number,
37 title_key='displayable_name',
40 onchange='filter_table();') %]</td>
44 <th align="right">[% 'From' | $T8 %]</th>
45 <td>[% L.date_tag('filter.fromdate:date::ge', FORM.filter.fromdate_date__ge, onchange='filter_table();') %]</td>
46 <th align="right">[% 'to (date)' | $T8 %]</th>
47 <td>[% L.date_tag('filter.todate:date::le', FORM.filter.todate_date__le, onchange='filter_table();') %]</td>
51 <th align="right">[% 'Cleared/uncleared only' | $T8 %]</th>
52 <td>[% L.select_tag('filter.cleared:eq_ignore_empty', SELF.cleared, value_key = 'value', title_key = 'title', default=FORM.filter.cleared_eq_ignore_empty, onchange='filter_table();') %]</td>
56 <th align="right">[% 'Show Stornos' | $T8 %]</th>
57 <td>[% L.checkbox_tag('filter.show_stornos', checked=FORM.filter.show_stornos, value='1', onchange='filter_table();') %]</td>
61 <th align="right">[% 'Absolute BT Balance' | $T8 %]</th>
62 <td class='absolut_bt_balance'>[% LxERP.format_amount(SELF.absolut_bt_balance, 2) %]</td>
66 <th align="right">[% 'Absolute BB Balance' | $T8 %]</th>
67 <td class='absolut_bb_balance'>[% LxERP.format_amount(-1 * SELF.absolut_bb_balance, 2) %]</td>
71 <th align="right">[% 'BT Balance' | $T8 %]</th>
72 <td class='bt_balance'>[% LxERP.format_amount(SELF.bt_balance, 2) %]</td>
76 <th align="right">[% 'BB Balance' | $T8 %]</th>
77 <td class='bb_balance'>[% LxERP.format_amount(-1 * SELF.bb_balance, 2) %]</td>
81 [% L.submit_tag('submit_filter', LxERP.t8("Filter"), onclick='filter_table();return false;', style='display: none') %]
83 <div class="tabwidget" style="height:100%">
85 <li><a href="#overview" onclick="load_overview();">[% 'Overview' | $T8 %]</a></li>
86 <li><a href="#automatic" onclick="load_proposals();">[% 'Proposals' | $T8 %]</a></li>
89 <div id="overview" style="height:calc(100% - 60px);overflow: auto;">[% PROCESS "reconciliation/tabs/overview.html" %]</div>
90 <div id="automatic" style="height:calc(100% - 60px);overflow: auto;"></div>
95 <script type="text/javascript">
98 function load_proposals () {
99 var url="controller.pl?action=Reconciliation/load_proposals";
103 data: $('#reconciliation_form').serialize(),
104 success: function(new_data) {
105 $('#overview').html('');
106 $('#automatic').html(new_data['html']);
107 $('#set_cleared').html('');
112 function load_overview () {
113 var url="controller.pl?action=Reconciliation/load_overview";
117 data: $('#reconciliation_form').serialize(),
118 success: function(new_data) {
119 $('#overview').html(new_data['html']);
120 $('#automatic').html('');
121 $('#set_cleared').html('');