Revision 5eaed589
Von Martin Helmling martin.helmling@octosoft.eu vor etwa 8 Jahren hinzugefügt
SL/Controller/Reconciliation.pm | ||
---|---|---|
35 | 35 |
sub action_reconciliation { |
36 | 36 |
my ($self) = @_; |
37 | 37 |
|
38 |
$self->_get_proposals; |
|
39 |
|
|
38 | 40 |
$self->_get_linked_transactions; |
39 | 41 |
|
40 | 42 |
$self->_get_balances; |
41 | 43 |
|
42 | 44 |
$self->render('reconciliation/form', |
45 |
ui_tab => scalar(@{$self->{PROPOSALS}}) > 0?1:0, |
|
43 | 46 |
title => t8('Reconciliation')); |
44 | 47 |
} |
45 | 48 |
|
templates/webpages/reconciliation/form.html | ||
---|---|---|
24 | 24 |
</style> |
25 | 25 |
|
26 | 26 |
<div class="listtop">[% title %]</div> |
27 |
|
|
27 |
xx[% ui_tab %]yy |
|
28 | 28 |
[%- INCLUDE 'common/flash.html' %] |
29 | 29 |
|
30 | 30 |
<form id="reconciliation_form" method="post" action="controller.pl" style="height:100%"> |
... | ... | |
80 | 80 |
|
81 | 81 |
[% L.submit_tag('submit_filter', LxERP.t8("Filter"), onclick='filter_table();return false;', style='display: none') %] |
82 | 82 |
|
83 |
<div class="tabwidget" style="height:100%"> |
|
83 |
<div id="reconc_tabs" class="tabwidget" style="height:100%">
|
|
84 | 84 |
<ul> |
85 | 85 |
<li><a href="#overview" onclick="load_overview();">[% 'Overview' | $T8 %]</a></li> |
86 | 86 |
<li><a href="#automatic" onclick="load_proposals();">[% 'Proposals' | $T8 %]</a></li> |
87 | 87 |
</ul> |
88 | 88 |
|
89 |
<div id="overview" style="height:calc(100% - 60px);overflow: auto;">[% PROCESS "reconciliation/tabs/overview.html" %]</div> |
|
90 |
<div id="automatic" style="height:calc(100% - 60px);overflow: auto;"></div> |
|
89 |
<div id="overview" style="height:calc(100% - 60px);overflow: auto;"> |
|
90 |
[%- IF ui_tab == 0 %] |
|
91 |
[% PROCESS "reconciliation/tabs/overview.html" %] |
|
92 |
[%- END %]</div> |
|
93 |
<div id="automatic" style="height:calc(100% - 60px);overflow: auto;"> |
|
94 |
[%- IF ui_tab == 1 %] |
|
95 |
[% PROCESS "reconciliation/tabs/automatic.html" %] |
|
96 |
[%- END %] </div> |
|
91 | 97 |
</div> |
92 | 98 |
|
93 | 99 |
</form> |
... | ... | |
121 | 127 |
}); |
122 | 128 |
} |
123 | 129 |
|
130 |
$.cookie('jquery_ui_tab_reconc_tabs', [% ui_tab %] ); |
|
131 |
|
|
124 | 132 |
//--> |
125 | 133 |
</script> |
126 | 134 |
|
Auch abrufbar als: Unified diff
Bankimport: Kontenabgleich mit Bank - Tab "Vorschläge" aktivieren
Falls Vorschäge gefunden werden,
werden diese gleich angezeigt.
Dazu wird ui_tab über cookie geschaltet