]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/reconciliation/form.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / reconciliation / form.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %]
5
6 <h1>[% title %]</h1>
7
8 [%- INCLUDE 'common/flash.html' %]
9
10 <form id="reconciliation_form" method="post" action="controller.pl" id="filter_form">
11
12   <table class="tbl-horizontal test">
13     <tbody>
14     <tr>
15      <th>[% 'Bank account' | $T8 %]</th>
16      <td>[% L.select_tag('filter.local_bank_account_id:number',
17                           SELF.BANK_ACCOUNTS,
18                           default=FORM.filter.local_bank_account_id_number,
19                           title_key='displayable_name',
20                           with_empty=0,
21                           style='width:450px',
22                           onchange='filter_table();') %]</td>
23     </tr>
24
25     <tr>
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>
30     </tr>
31
32     <tr>
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>
35     </tr>
36
37     <tr>
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>
40     </tr>
41
42     <tr>
43      <th>[% 'Absolute BT Balance' | $T8 %]</th>
44      <td class="absolut_bt_balance">[% LxERP.format_amount(SELF.absolut_bt_balance, 2) %]</td>
45     </tr>
46
47     <tr>
48      <th>[% 'Absolute BB Balance' | $T8 %]</th>
49      <td class="absolut_bb_balance">[% LxERP.format_amount(-1 * SELF.absolut_bb_balance, 2) %]</td>
50     </tr>
51
52     <tr>
53      <th>[% 'BT Balance' | $T8 %]</th>
54      <td class="bt_balance">[% LxERP.format_amount(SELF.bt_balance, 2) %]</td>
55     </tr>
56
57     <tr>
58      <th>[% 'BB Balance' | $T8 %]</th>
59      <td class="bb_balance">[% LxERP.format_amount(-1 * SELF.bb_balance, 2) %]</td>
60     </tr>
61     </tbody>
62   </table>
63
64   <div id="reconc_tabs" class="tabwidget" style="height:100%">
65     <ul>
66       <li><a href="#overview" onclick='load_overview();'>[% 'Overview' | $T8 %]</a></li>
67       <li><a href="#automatic" onclick='load_proposals();'>[% 'Proposals' | $T8 %]</a></li>
68     </ul>
69
70     <div id="overview" style="height:calc(100% - 60px);overflow: auto;">
71     [%- IF ui_tab == 0 %]
72       [% PROCESS "reconciliation/tabs/overview.html" %]
73     [%- END %]</div>
74     <div id="automatic" style="height:calc(100% - 60px);overflow: auto;">
75     [%- IF ui_tab == 1 %]
76       [% PROCESS "reconciliation/tabs/automatic.html" %]
77     [%- END %]</div>
78   </div>
79
80 </form>
81
82 <script type="text/javascript">
83 <!--
84
85 function load_proposals () {
86   var url="controller.pl?action=Reconciliation/load_proposals";
87   $.ajax({
88     url: url,
89     type: "POST",
90     data: $('#reconciliation_form').serialize(),
91     success: function(new_data) {
92       $('#overview').html('');
93       $('#automatic').html(new_data['html']);
94     }
95   });
96 }
97
98 function load_overview () {
99   var url="controller.pl?action=Reconciliation/load_overview";
100   $.ajax({
101     url: url,
102     type: "GET",
103     data: $('#reconciliation_form').serialize(),
104     success: function(new_data) {
105       $('#overview').html(new_data['html']);
106       $('#automatic').html('');
107     }
108   });
109 }
110
111 $.cookie('jquery_ui_tab_reconc_tabs', [% ui_tab %] );
112
113 //-->
114 </script>