]> wagnertech.de Git - kivitendo-erp.git/commitdiff
FlattenToForm: nicht zu rundende Zahlen mit mind. zwei Nachkommastellen darstellen.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 14 Oct 2015 14:45:20 +0000 (16:45 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 14 Oct 2015 14:45:20 +0000 (16:45 +0200)
SL/DB/Helper/FlattenToForm.pm

index a9c0264ef419bbc5a9c3802f4247189d436e5ef0..aea1a0d1830fa3a0f3dbd034bdd0753fc755a1e7 100644 (file)
@@ -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;
 }