Revision cb0414d6
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/YearEndTransactions.pm | ||
---|---|---|
29 | 29 |
$self->cb_reference(t8('CB Transaction')) if !$self->cb_reference; |
30 | 30 |
$self->ob_description(t8('OB Transaction')) if !$self->ob_description; |
31 | 31 |
$self->cb_description(t8('CB Transaction')) if !$self->cb_description; |
32 |
|
|
33 |
$self->setup_filter_action_bar; |
|
32 | 34 |
$self->render('gl/yearend_filter', |
33 | 35 |
title => t8('CB/OB Transactions'), |
34 | 36 |
make_title_of_chart => sub { $_[0]->accno.' '.$_[0]->description } |
... | ... | |
52 | 54 |
allow_csv_export => 0, |
53 | 55 |
title => $::locale->text('CB/OB Transactions'), |
54 | 56 |
); |
55 |
$report->generate_with_headers(); |
|
57 |
|
|
58 |
$self->setup_list_action_bar; |
|
59 |
$report->generate_with_headers(action_bar => 1); |
|
56 | 60 |
$main::lxdebug->leave_sub(); |
57 | 61 |
} |
58 | 62 |
|
... | ... | |
270 | 274 |
SL::DB::Manager::Chart->get_all( query => [ \ "accno not like '9%'"], sort_by => 'accno ASC' ); |
271 | 275 |
} |
272 | 276 |
|
277 |
sub setup_filter_action_bar { |
|
278 |
my ($self) = @_; |
|
279 |
|
|
280 |
for my $bar ($::request->layout->get('actionbar')) { |
|
281 |
$bar->add( |
|
282 |
action => [ |
|
283 |
t8('Continue'), |
|
284 |
submit => [ '#filter_form', { action => 'YearEndTransactions/list' } ], |
|
285 |
accesskey => 'enter', |
|
286 |
], |
|
287 |
); |
|
288 |
} |
|
289 |
} |
|
290 |
|
|
291 |
sub setup_list_action_bar { |
|
292 |
my ($self) = @_; |
|
293 |
|
|
294 |
for my $bar ($::request->layout->get('actionbar')) { |
|
295 |
$bar->add( |
|
296 |
action => [ |
|
297 |
t8('Post'), |
|
298 |
submit => [ '#form', { action => 'YearEndTransactions/generate' } ], |
|
299 |
tooltip => t8('generate cb/ob transactions for selected charts'), |
|
300 |
confirm => t8('Are you sure to generate cb/ob transactions?'), |
|
301 |
accesskey => 'enter', |
|
302 |
], |
|
303 |
action => [ |
|
304 |
t8('Back'), |
|
305 |
call => [ 'kivi.history_back' ], |
|
306 |
], |
|
307 |
); |
|
308 |
} |
|
309 |
} |
|
310 |
|
|
273 | 311 |
1; |
locale/de/all | ||
---|---|---|
3687 | 3687 |
'from \'#1\' imported Files' => 'Von \'#1\' importierte Dateien', |
3688 | 3688 |
'from (time)' => 'von', |
3689 | 3689 |
'general_ledger_list' => 'Buchungsjournal', |
3690 |
'generate cb/ob transactions for selected charts' => 'Buchungen erstellen',
|
|
3690 |
'generate cb/ob transactions for selected charts' => 'Start-/Endbuchungen für ausgewählte Konten erstellen',
|
|
3691 | 3691 |
'generated Files' => 'Erzeugte Dokumente', |
3692 | 3692 |
'gobd-#1-#2.zip' => 'gobd-#1-#2.zip', |
3693 | 3693 |
'h' => 'h', |
templates/webpages/gl/yearend_bottom.html | ||
---|---|---|
1 | 1 |
[%- USE L %] |
2 | 2 |
[%- USE LxERP %] |
3 |
<table width="100%"> |
|
4 |
<tr><td> |
|
5 |
[%- L.hidden_tag("action","YearEndTransactions/dispatch") %] |
|
6 | 3 |
[%- L.hidden_tag("cb_date",SELF.cb_date.to_kivitendo) %] |
7 | 4 |
[%- L.hidden_tag("cb_startdate",SELF.cb_startdate.to_kivitendo) %] |
8 | 5 |
[%- L.hidden_tag("cb_reference",SELF.cb_reference) %] |
... | ... | |
12 | 9 |
[%- L.hidden_tag("ob_description",SELF.ob_description) %] |
13 | 10 |
[%- L.hidden_tag("cbob_chart",SELF.cbob_chart) %] |
14 | 11 |
[%- L.hidden_tag("rowcount",SELF.row_count) %] |
15 |
[%- L.submit_tag("action_generate", LxERP.t8('generate cb/ob transactions for selected charts'), |
|
16 |
confirm=LxERP.t8('Are you sure to generate cb/ob transactions?')) %] |
|
17 |
[%- L.submit_tag("action_filter", LxERP.t8('back')) %] |
|
18 |
</td> |
|
19 |
</tr> |
|
20 |
</table></form> |
|
12 |
</form> |
templates/webpages/gl/yearend_filter.html | ||
---|---|---|
56 | 56 |
<td colspan="3">[% L.select_tag('cbob_chart', SELF.charts9000, title_sub=\make_title_of_chart, default=SELF.cbob_chart, style="width: 400px") %]</td> |
57 | 57 |
</tr> |
58 | 58 |
</table> |
59 |
|
|
60 |
[% L.hidden_tag('action', 'YearEndTransactions/dispatch') %] |
|
61 |
<hr size=3 noshade><br> |
|
62 |
[% L.submit_tag('action_list', LxERP.t8('Continue')) %] |
|
63 |
|
|
64 | 59 |
</form> |
templates/webpages/gl/yearend_top.html | ||
---|---|---|
1 | 1 |
[%- USE LxERP %] |
2 |
<form method="post" action="controller.pl"> |
|
2 |
<form method="post" action="controller.pl" id="form">
|
|
3 | 3 |
<table> |
4 | 4 |
<tr> |
5 | 5 |
<td width="20px"></td> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Jahresendbuchungen