Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cb0414d6

Von Moritz Bunkus vor etwa 8 Jahren hinzugefügt

  • ID cb0414d6fc74555cf85cc74152c5d7c2cb0168e2
  • Vorgänger 6da55ef4
  • Nachfolger 2d1ba4f4

ActionBar: Verwendung bei Jahresendbuchungen

Unterschiede anzeigen:

SL/Controller/YearEndTransactions.pm
$self->cb_reference(t8('CB Transaction')) if !$self->cb_reference;
$self->ob_description(t8('OB Transaction')) if !$self->ob_description;
$self->cb_description(t8('CB Transaction')) if !$self->cb_description;
$self->setup_filter_action_bar;
$self->render('gl/yearend_filter',
title => t8('CB/OB Transactions'),
make_title_of_chart => sub { $_[0]->accno.' '.$_[0]->description }
......
allow_csv_export => 0,
title => $::locale->text('CB/OB Transactions'),
);
$report->generate_with_headers();
$self->setup_list_action_bar;
$report->generate_with_headers(action_bar => 1);
$main::lxdebug->leave_sub();
}
......
SL::DB::Manager::Chart->get_all( query => [ \ "accno not like '9%'"], sort_by => 'accno ASC' );
}
sub setup_filter_action_bar {
my ($self) = @_;
for my $bar ($::request->layout->get('actionbar')) {
$bar->add(
action => [
t8('Continue'),
submit => [ '#filter_form', { action => 'YearEndTransactions/list' } ],
accesskey => 'enter',
],
);
}
}
sub setup_list_action_bar {
my ($self) = @_;
for my $bar ($::request->layout->get('actionbar')) {
$bar->add(
action => [
t8('Post'),
submit => [ '#form', { action => 'YearEndTransactions/generate' } ],
tooltip => t8('generate cb/ob transactions for selected charts'),
confirm => t8('Are you sure to generate cb/ob transactions?'),
accesskey => 'enter',
],
action => [
t8('Back'),
call => [ 'kivi.history_back' ],
],
);
}
}
1;
locale/de/all
'from \'#1\' imported Files' => 'Von \'#1\' importierte Dateien',
'from (time)' => 'von',
'general_ledger_list' => 'Buchungsjournal',
'generate cb/ob transactions for selected charts' => 'Buchungen erstellen',
'generate cb/ob transactions for selected charts' => 'Start-/Endbuchungen für ausgewählte Konten erstellen',
'generated Files' => 'Erzeugte Dokumente',
'gobd-#1-#2.zip' => 'gobd-#1-#2.zip',
'h' => 'h',
templates/webpages/gl/yearend_bottom.html
[%- USE L %]
[%- USE LxERP %]
<table width="100%">
<tr><td>
[%- L.hidden_tag("action","YearEndTransactions/dispatch") %]
[%- L.hidden_tag("cb_date",SELF.cb_date.to_kivitendo) %]
[%- L.hidden_tag("cb_startdate",SELF.cb_startdate.to_kivitendo) %]
[%- L.hidden_tag("cb_reference",SELF.cb_reference) %]
......
[%- L.hidden_tag("ob_description",SELF.ob_description) %]
[%- L.hidden_tag("cbob_chart",SELF.cbob_chart) %]
[%- L.hidden_tag("rowcount",SELF.row_count) %]
[%- L.submit_tag("action_generate", LxERP.t8('generate cb/ob transactions for selected charts'),
confirm=LxERP.t8('Are you sure to generate cb/ob transactions?')) %]
[%- L.submit_tag("action_filter", LxERP.t8('back')) %]
</td>
</tr>
</table></form>
</form>
templates/webpages/gl/yearend_filter.html
<td colspan="3">[% L.select_tag('cbob_chart', SELF.charts9000, title_sub=\make_title_of_chart, default=SELF.cbob_chart, style="width: 400px") %]</td>
</tr>
</table>
[% L.hidden_tag('action', 'YearEndTransactions/dispatch') %]
<hr size=3 noshade><br>
[% L.submit_tag('action_list', LxERP.t8('Continue')) %]
</form>
templates/webpages/gl/yearend_top.html
[%- USE LxERP %]
<form method="post" action="controller.pl">
<form method="post" action="controller.pl" id="form">
<table>
<tr>
<td width="20px"></td>

Auch abrufbar als: Unified diff