Sammelcommit Bankerweiterung und Skonto
[kivitendo-erp.git] / templates / webpages / reconciliation / tabs / automatic.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %]
5
6 [% SET debug = 0 %]
7
8 <table width=100% id="proposal_table">
9   <thead>
10     <tr class="listheading">
11       <th>[% L.checkbox_tag('proposal_check_all') %]</th>
12
13       <th></th>
14       <th>[% 'Type' | $T8 %]</th>
15       [% IF debug %]<th>[% 'ID/Acc_ID' | $T8 %]</th>[% END %]
16       <th>[% 'Transdate' | $T8 %]</th>
17       <th>[% 'Amount BT' | $T8 %]</th>
18       <th>[% 'Amount BB' | $T8 %]</th>
19       <th>[% 'Remote Name/Customer/Description' | $T8 %]</th>
20       <th>[% 'Purpose/Reference' | $T8 %]</th>
21       <th>[% 'Remote account number' | $T8 %]</th>
22       <th>[% 'Remote bank code' | $T8 %]</th>
23       <th>[% 'Source' | $T8 %]</th>
24     </tr>
25   </thead>
26
27   [% PROCESS "reconciliation/proposals.html" %]
28 <table>
29
30 [% L.button_tag("reconcile_proposals()", LxERP.t8("Reconcile")) %]
31
32 <script type="text/javascript">
33 <!--
34
35 function filter_table () {
36   var url="controller.pl?action=Reconciliation/filter_proposals&" + $('#reconciliation_form') . serialize();
37   $.ajax({
38     url: url,
39     success: function(new_data) {
40       $("tbody[class^='listrow']").remove();
41       $("#proposal_table").append(new_data['html']);
42       $(".absolut_bt_balance").html(new_data['absolut_bt_balance']);
43       $(".absolut_bb_balance").html(new_data['absolut_bb_balance']);
44       $(".bt_balance").html(new_data['bt_balance']);
45       $(".bb_balance").html(new_data['bb_balance']);
46     }
47   });
48 }
49
50 function reconcile_proposals() {
51   $('<input>').attr({
52     id : "action",
53     name : "action",
54     type : "hidden",
55     value : "Reconciliation/reconcile_proposals"
56   }).appendTo('#reconciliation_form');
57   $("#reconciliation_form").submit();
58 }
59
60 $(function() {
61   $('#proposal_check_all').checkall('INPUT[name^="bt_ids"]');
62 });
63
64 //-->
65 </script>
66