From: Bernd Bleßmann Date: Wed, 14 Oct 2015 14:45:20 +0000 (+0200) Subject: FlattenToForm: nicht zu rundende Zahlen mit mind. zwei Nachkommastellen darstellen. X-Git-Tag: release-3.4.1~638 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ef89279bd80f754607c01c021ed68fd3d131c362;p=kivitendo-erp.git FlattenToForm: nicht zu rundende Zahlen mit mind. zwei Nachkommastellen darstellen. --- diff --git a/SL/DB/Helper/FlattenToForm.pm b/SL/DB/Helper/FlattenToForm.pm index a9c0264ef..aea1a0d18 100644 --- a/SL/DB/Helper/FlattenToForm.pm +++ b/SL/DB/Helper/FlattenToForm.pm @@ -97,7 +97,7 @@ sub _copy { 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; }