]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/Helper/FlattenToForm.pm
FlattenToForm: nicht zu rundende Zahlen mit mind. zwei Nachkommastellen darstellen.
[kivitendo-erp.git] / 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;
 }