Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ef89279b

Von Bernd Bleßmann vor mehr als 9 Jahren hinzugefügt

  • ID ef89279bd80f754607c01c021ed68fd3d131c362
  • Vorgänger e998dd2f
  • Nachfolger d0b60417

FlattenToForm: nicht zu rundende Zahlen mit mind. zwei Nachkommastellen darstellen.

Unterschiede anzeigen:

SL/DB/Helper/FlattenToForm.pm
map { $form->{"${prefix}${_}${postfix}"} = $::form->format_amount(\%::myconfig, $src->$_ * 1, 2) } @columns if $format_amounts == 1;
map { $form->{"${prefix}${_}${postfix}"} = $src->$_ * 1 ? $::form->format_amount(\%::myconfig, $src->$_ * 1, 2) : 0 } @columns if $format_amounts == 2;
map { $form->{"${prefix}${_}${postfix}"} = $src->$_ * 1 ? $::form->format_amount(\%::myconfig, $src->$_ * 100, 2) : 0 } @columns if $format_amounts == 3;
map { $form->{"${prefix}${_}${postfix}"} = $src->$_ * 1 ? $::form->format_amount(\%::myconfig, $src->$_ * 1) : 0 } @columns if $format_amounts == 4;
map { $form->{"${prefix}${_}${postfix}"} = $src->$_ * 1 ? $::form->format_amount(\%::myconfig, $src->$_ * 1, -2) : 0 } @columns if $format_amounts == 4;
return $src;
}

Auch abrufbar als: Unified diff