From ed0f3caf745a0b01ccbb62911a60638a15b68f58 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 26 Apr 2013 14:17:12 +0200 Subject: [PATCH] =?utf8?q?Finanz=C3=BCbersichtsbericht:=20Geld=20repr?= =?utf8?q?=C3=A4sentierende=20Zahlen=20fest=20mit=20zwei=20Nachkommastelle?= =?utf8?q?n=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/FinancialOverview.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.20.1