Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ed0f3caf

Von Moritz Bunkus vor fast 11 Jahren hinzugefügt

  • ID ed0f3caf745a0b01ccbb62911a60638a15b68f58
  • Vorgänger 8165bc52
  • Nachfolger b841f0fd

Finanzübersichtsbericht: Geld repräsentierende Zahlen fest mit zwei Nachkommastellen anzeigen

Unterschiede anzeigen:

SL/Controller/FinancialOverview.pm
130 130

  
131 131
  for my $month (1..12) {
132 132
    my %data  = (
133
      map({ ($_ => { data => $self->data->{$_}->[$month - 1]                                                 }) } @non_type_columns),
134
      map({ ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{months}->[$month - 1]) }) } @type_columns    ),
133
      map({ ($_ => { data => $self->data->{$_}->[$month - 1]                                                    }) } @non_type_columns),
134
      map({ ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{months}->[$month - 1], 2) }) } @type_columns    ),
135 135
    );
136 136

  
137 137
    $self->report->add_data(\%data);
......
140 140
      my %subtotal =  (
141 141
        year       => { data => $self->year },
142 142
        month      => { data => $::locale->text('Total') },
143
        map { ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{quarters}->[int(($month - 1) / 3)]) }) } @type_columns,
143
        map { ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{quarters}->[int(($month - 1) / 3)], 2) }) } @type_columns,
144 144
      );
145 145

  
146 146
      $subtotal{$_}->{class} = 'listsubtotal' for @visible_columns;
......
152 152
  my %data  =  (
153 153
    year    => { data => $self->year },
154 154
    quarter => { data => $::locale->text('Total') },
155
    map { ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{year}) }) } @type_columns,
155
    map { ($_ => { data => $::form->format_amount(\%::myconfig, $self->data->{$_}->{year}, 2) }) } @type_columns,
156 156
  );
157 157

  
158 158
  $data{$_}->{class} = 'listtotal' for @visible_columns;

Auch abrufbar als: Unified diff