8 [%- INCLUDE 'common/flash.html' %]
10 <form id="reconciliation_form" method="post" action="controller.pl" id="filter_form">
12 <table class="tbl-horizontal test">
15 <th>[% 'Bank account' | $T8 %]</th>
16 <td>[% L.select_tag('filter.local_bank_account_id:number',
18 default=FORM.filter.local_bank_account_id_number,
19 title_key='displayable_name',
22 onchange='filter_table();') %]</td>
26 <th>[% 'From' | $T8 %]</th>
27 <td>[% L.date_tag('filter.fromdate:date::ge', FORM.filter.fromdate_date__ge, onchange='filter_table();') %]</td>
28 <th>[% 'to (date)' | $T8 %]</th>
29 <td>[% L.date_tag('filter.todate:date::le', FORM.filter.todate_date__le, onchange='filter_table();') %]</td>
33 <th>[% 'Cleared/uncleared only' | $T8 %]</th>
34 <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>
38 <th>[% 'Show Stornos' | $T8 %]</th>
39 <td>[% L.checkbox_tag('filter.show_stornos', checked=FORM.filter.show_stornos, value='1', onchange='filter_table();') %]</td>
43 <th>[% 'Absolute BT Balance' | $T8 %]</th>
44 <td class="absolut_bt_balance">[% LxERP.format_amount(SELF.absolut_bt_balance, 2) %]</td>
48 <th>[% 'Absolute BB Balance' | $T8 %]</th>
49 <td class="absolut_bb_balance">[% LxERP.format_amount(-1 * SELF.absolut_bb_balance, 2) %]</td>
53 <th>[% 'BT Balance' | $T8 %]</th>
54 <td class="bt_balance">[% LxERP.format_amount(SELF.bt_balance, 2) %]</td>
58 <th>[% 'BB Balance' | $T8 %]</th>
59 <td class="bb_balance">[% LxERP.format_amount(-1 * SELF.bb_balance, 2) %]</td>
64 <div id="reconc_tabs" class="tabwidget" style="height:100%">
66 <li><a href="#overview" onclick='load_overview();'>[% 'Overview' | $T8 %]</a></li>
67 <li><a href="#automatic" onclick='load_proposals();'>[% 'Proposals' | $T8 %]</a></li>
70 <div id="overview" style="height:calc(100% - 60px);overflow: auto;">
72 [% PROCESS "reconciliation/tabs/overview.html" %]
74 <div id="automatic" style="height:calc(100% - 60px);overflow: auto;">
76 [% PROCESS "reconciliation/tabs/automatic.html" %]
82 <script type="text/javascript">
85 function load_proposals () {
86 var url="controller.pl?action=Reconciliation/load_proposals";
90 data: $('#reconciliation_form').serialize(),
91 success: function(new_data) {
92 $('#overview').html('');
93 $('#automatic').html(new_data['html']);
98 function load_overview () {
99 var url="controller.pl?action=Reconciliation/load_overview";
103 data: $('#reconciliation_form').serialize(),
104 success: function(new_data) {
105 $('#overview').html(new_data['html']);
106 $('#automatic').html('');
111 $.cookie('jquery_ui_tab_reconc_tabs', [% ui_tab %] );