From: Moritz Bunkus Date: Fri, 26 Apr 2013 12:17:12 +0000 (+0200) Subject: Finanzübersichtsbericht: Geld repräsentierende Zahlen fest mit zwei Nachkommastellen... X-Git-Tag: release-3.1.0beta1~22^2~87^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ed0f3caf745a0b01ccbb62911a60638a15b68f58;p=kivitendo-erp.git Finanzübersichtsbericht: Geld repräsentierende Zahlen fest mit zwei Nachkommastellen anzeigen --- diff --git a/SL/Controller/FinancialOverview.pm b/SL/Controller/FinancialOverview.pm index 7779a0038..38d2fc61b 100644 --- a/SL/Controller/FinancialOverview.pm +++ b/SL/Controller/FinancialOverview.pm @@ -130,8 +130,8 @@ sub list_data { for my $month (1..12) { my %data = ( - map({ ($_ => { data => $self->data->{$_}->[$month - 1] }) } @non_type_columns), - map({ ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{months}->[$month - 1]) }) } @type_columns ), + map({ ($_ => { data => $self->data->{$_}->[$month - 1] }) } @non_type_columns), + map({ ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{months}->[$month - 1], 2) }) } @type_columns ), ); $self->report->add_data(\%data); @@ -140,7 +140,7 @@ sub list_data { my %subtotal = ( year => { data => $self->year }, month => { data => $::locale->text('Total') }, - map { ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{quarters}->[int(($month - 1) / 3)]) }) } @type_columns, + map { ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{quarters}->[int(($month - 1) / 3)], 2) }) } @type_columns, ); $subtotal{$_}->{class} = 'listsubtotal' for @visible_columns; @@ -152,7 +152,7 @@ sub list_data { my %data = ( year => { data => $self->year }, quarter => { data => $::locale->text('Total') }, - map { ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{year}) }) } @type_columns, + map { ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{year}, 2) }) } @type_columns, ); $data{$_}->{class} = 'listtotal' for @visible_columns;