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>
27 [%- INCLUDE 'common/flash.html' %]
29 <form id="reconciliation_form" method="post" action="controller.pl" style="height:100%" id="filter_form">
32 <th align="right">[% 'Bank account' | $T8 %]</th>
33 <td>[% L.select_tag('filter.local_bank_account_id:number',
35 default=FORM.filter.local_bank_account_id_number,
36 title_key='displayable_name',
39 onchange='filter_table();') %]</td>
43 <th align="right">[% 'From' | $T8 %]</th>
44 <td>[% L.date_tag('filter.fromdate:date::ge', FORM.filter.fromdate_date__ge, onchange='filter_table();') %]</td>
45 <th align="right">[% 'to (date)' | $T8 %]</th>
46 <td>[% L.date_tag('filter.todate:date::le', FORM.filter.todate_date__le, onchange='filter_table();') %]</td>
50 <th align="right">[% 'Cleared/uncleared only' | $T8 %]</th>
51 <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>
55 <th align="right">[% 'Show Stornos' | $T8 %]</th>
56 <td>[% L.checkbox_tag('filter.show_stornos', checked=FORM.filter.show_stornos, value='1', onchange='filter_table();') %]</td>
60 <th align="right">[% 'Absolute BT Balance' | $T8 %]</th>
61 <td class='absolut_bt_balance'>[% LxERP.format_amount(SELF.absolut_bt_balance, 2) %]</td>
65 <th align="right">[% 'Absolute BB Balance' | $T8 %]</th>
66 <td class='absolut_bb_balance'>[% LxERP.format_amount(-1 * SELF.absolut_bb_balance, 2) %]</td>
70 <th align="right">[% 'BT Balance' | $T8 %]</th>
71 <td class='bt_balance'>[% LxERP.format_amount(SELF.bt_balance, 2) %]</td>
75 <th align="right">[% 'BB Balance' | $T8 %]</th>
76 <td class='bb_balance'>[% LxERP.format_amount(-1 * SELF.bb_balance, 2) %]</td>
80 <div id="reconc_tabs" class="tabwidget" style="height:100%">
82 <li><a href="#overview" onclick="load_overview();">[% 'Overview' | $T8 %]</a></li>
83 <li><a href="#automatic" onclick="load_proposals();">[% 'Proposals' | $T8 %]</a></li>
86 <div id="overview" style="height:calc(100% - 60px);overflow: auto;">
88 [% PROCESS "reconciliation/tabs/overview.html" %]
90 <div id="automatic" style="height:calc(100% - 60px);overflow: auto;">
92 [% PROCESS "reconciliation/tabs/automatic.html" %]
98 <script type="text/javascript">
101 function load_proposals () {
102 var url="controller.pl?action=Reconciliation/load_proposals";
106 data: $('#reconciliation_form').serialize(),
107 success: function(new_data) {
108 $('#overview').html('');
109 $('#automatic').html(new_data['html']);
114 function load_overview () {
115 var url="controller.pl?action=Reconciliation/load_overview";
119 data: $('#reconciliation_form').serialize(),
120 success: function(new_data) {
121 $('#overview').html(new_data['html']);
122 $('#automatic').html('');
127 $.cookie('jquery_ui_tab_reconc_tabs', [% ui_tab %] );