X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Frp.pl;h=98a0aba59df785af62f71c19de569d69731049b3;hb=ff71dc3fb3a632a6a5856d94c3b336aa5ef6d6d2;hp=fea72bcdbe43b58daf6dde1dbceda098c124fd3e;hpb=5be291594a4ead20f6900b249357deb262137cac;p=kivitendo-erp.git diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index fea72bcdb..98a0aba59 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -1091,6 +1091,7 @@ sub generate_balance_sheet { $auth->assert('report'); + $form->{decimalplaces} = $form->{decimalplaces} * 1 || 2; $form->{padding} = "  "; $form->{bold} = ""; $form->{endbold} = ""; @@ -1265,33 +1266,31 @@ sub generate_trial_balance { "accno", "description", "last_transaction", "soll_eb", "haben_eb", - "soll", "haben", - "soll_kumuliert", "haben_kumuliert", - "soll_saldo", "haben_saldo" + "soll", "haben", + "soll_kumuliert", "haben_kumuliert", + "soll_saldo", "haben_saldo" ); - my $attachment_basename; - $attachment_basename = $locale->text('trial_balance'); - my $report = SL::ReportGenerator->new(\%myconfig, $form); + my $attachment_basename = $locale->text('trial_balance'); + my $report = SL::ReportGenerator->new(\%myconfig, $form); - my @hidden_variables = (); - push @hidden_variables, qw(fromdate todate year cash ); + my @hidden_variables = qw(fromdate todate year cash); - my $href = build_std_url('action=generate_trial_balance', grep { $form->{$_} } @hidden_variables); + my $href = build_std_url('action=generate_trial_balance', grep { $form->{$_} } @hidden_variables); - my %column_defs = ( - 'accno' => { 'text' => $locale->text('Account Number'), }, - 'description' => { 'text' => $locale->text('Description'), }, - 'last_transaction' => { 'text' => $locale->text('Last Transaction'), }, - 'soll_eb' => { 'text' => $locale->text('Debit Starting Balance'), }, - 'haben_eb' => { 'text' => $locale->text('Credit Starting Balance'), }, - 'soll' => { 'text' => $locale->text('Debit'), }, - 'haben' => { 'text' => $locale->text('Credit'), }, - 'soll_kumuliert' => { 'text' => $locale->text('Sum Debit'), }, - 'haben_kumuliert' => { 'text' => $locale->text('Sum Credit'), }, - 'soll_saldo' => { 'text' => $locale->text('Saldo Debit'), }, - 'haben_saldo' => { 'text' => $locale->text('Saldo Credit'), } + my %column_defs = ( + 'accno' => { 'text' => $locale->text('Account Number'), }, + 'description' => { 'text' => $locale->text('Description'), }, + 'last_transaction' => { 'text' => $locale->text('Last Transaction'), }, + 'soll_eb' => { 'text' => $locale->text('Debit Starting Balance'), }, + 'haben_eb' => { 'text' => $locale->text('Credit Starting Balance'), }, + 'soll' => { 'text' => $locale->text('Debit'), }, + 'haben' => { 'text' => $locale->text('Credit'), }, + 'soll_kumuliert' => { 'text' => $locale->text('Sum Debit'), }, + 'haben_kumuliert' => { 'text' => $locale->text('Sum Credit'), }, + 'soll_saldo' => { 'text' => $locale->text('Saldo Debit'), }, + 'haben_saldo' => { 'text' => $locale->text('Saldo Credit'), } ); @@ -1305,8 +1304,6 @@ sub generate_trial_balance { $report->set_export_options('generate_trial_balance', @hidden_variables); - $report->set_sort_indicator($form->{sort}, 1); - my @options; @@ -1466,8 +1463,6 @@ sub list_accounts { $report->set_export_options($action, @hidden_variables); - $report->set_sort_indicator('accno', 1); - my @totals_columns = qw(credit debit begbalance endbalance); my %subtotals = map { $_ => 0 } @totals_columns; my %totals = map { $_ => 0 } @totals_columns; @@ -2313,7 +2308,7 @@ sub list_payments { $report->set_columns(%column_defs); $report->set_column_order(@columns); - $report->set_export_options('list_payments', @hidden_variables); + $report->set_export_options('list_payments', @hidden_variables, qw(sort sortdir)); $report->set_sort_indicator($form->{sort}, $form->{sortdir});