Revision 3810d658
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/Reconciliation.pm | ||
---|---|---|
29 | 29 |
sub action_search { |
30 | 30 |
my ($self) = @_; |
31 | 31 |
|
32 |
$self->setup_search_action_bar; |
|
32 | 33 |
$self->render('reconciliation/search'); |
33 | 34 |
} |
34 | 35 |
|
... | ... | |
41 | 42 |
|
42 | 43 |
$self->_get_balances; |
43 | 44 |
|
45 |
$self->setup_reconciliation_action_bar; |
|
44 | 46 |
$self->render('reconciliation/form', |
45 | 47 |
ui_tab => scalar(@{$self->{PROPOSALS}}) > 0?1:0, |
46 | 48 |
title => t8('Reconciliation')); |
... | ... | |
620 | 622 |
SL::DB::Manager::BankAccount->get_all_sorted( query => [ obsolete => 0 ] ); |
621 | 623 |
} |
622 | 624 |
|
625 |
sub setup_search_action_bar { |
|
626 |
my ($self, %params) = @_; |
|
627 |
|
|
628 |
for my $bar ($::request->layout->get('actionbar')) { |
|
629 |
$bar->add( |
|
630 |
action => [ |
|
631 |
t8('Show'), |
|
632 |
submit => [ '#search_form', { action => 'Reconciliation/reconciliation' } ], |
|
633 |
accesskey => 'enter', |
|
634 |
], |
|
635 |
); |
|
636 |
} |
|
637 |
} |
|
638 |
|
|
639 |
sub setup_reconciliation_action_bar { |
|
640 |
my ($self, %params) = @_; |
|
641 |
|
|
642 |
for my $bar ($::request->layout->get('actionbar')) { |
|
643 |
$bar->add( |
|
644 |
action => [ |
|
645 |
t8('Filter'), |
|
646 |
call => [ 'filter_table' ], |
|
647 |
accesskey => 'enter', |
|
648 |
], |
|
649 |
); |
|
650 |
} |
|
651 |
} |
|
652 |
|
|
623 | 653 |
1; |
menus/user/00-erp.yaml | ||
---|---|---|
706 | 706 |
access: bank_transaction |
707 | 707 |
params: |
708 | 708 |
action: Reconciliation/search |
709 |
next_sub: Reconciliation/reconciliation |
|
710 | 709 |
- parent: cash |
711 | 710 |
id: cash_reconciliation |
712 | 711 |
name: Reconciliation |
templates/webpages/reconciliation/form.html | ||
---|---|---|
26 | 26 |
<div class="listtop">[% title %]</div> |
27 | 27 |
[%- INCLUDE 'common/flash.html' %] |
28 | 28 |
|
29 |
<form id="reconciliation_form" method="post" action="controller.pl" style="height:100%"> |
|
29 |
<form id="reconciliation_form" method="post" action="controller.pl" style="height:100%" id="filter_form">
|
|
30 | 30 |
<table> |
31 | 31 |
<tr> |
32 | 32 |
<th align="right">[% 'Bank account' | $T8 %]</th> |
... | ... | |
77 | 77 |
</tr> |
78 | 78 |
</table> |
79 | 79 |
|
80 |
[% L.submit_tag('submit_filter', LxERP.t8("Filter"), onclick='filter_table();return false;', style='display: none') %] |
|
81 |
|
|
82 | 80 |
<div id="reconc_tabs" class="tabwidget" style="height:100%"> |
83 | 81 |
<ul> |
84 | 82 |
<li><a href="#overview" onclick="load_overview();">[% 'Overview' | $T8 %]</a></li> |
... | ... | |
130 | 128 |
|
131 | 129 |
//--> |
132 | 130 |
</script> |
133 |
|
templates/webpages/reconciliation/search.html | ||
---|---|---|
3 | 3 |
[%- USE L %] |
4 | 4 |
[%- USE LxERP %] |
5 | 5 |
|
6 |
<form method="post" action="controller.pl"> |
|
6 |
<form method="post" action="controller.pl" id="search_form">
|
|
7 | 7 |
|
8 | 8 |
<div class="listtop">[% 'Choose bank account for reconciliation' | $T8 %]</div> |
9 | 9 |
|
... | ... | |
35 | 35 |
</tr> |
36 | 36 |
</table> |
37 | 37 |
</p> |
38 |
|
|
39 |
<hr size="3" noshade> |
|
40 |
|
|
41 |
[% L.hidden_tag('action', FORM.next_sub) %] |
|
42 |
|
|
43 |
<p>[% L.submit_tag('dummy', LxERP.t8('Continue')) %]</p> |
|
44 | 38 |
</form> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei »Kontenabgleich mit Bank«