From: Bernd Blessmann <bibi@online.de> Date: Mon, 23 Jan 2012 14:24:02 +0000 (+0100) Subject: format_amount zum Formatieren verwenden, satt parse_amount. X-Git-Tag: release-2.7.0beta1~17^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2193f03f09faad23bb96f9bd706718fa882b0f98;p=kivitendo-erp.git format_amount zum Formatieren verwenden, satt parse_amount. Sonst sind die numerischen CVars beim Drucken nicht richtig formatiert. --- diff --git a/SL/CVar.pm b/SL/CVar.pm index 49e378666..6d04f35a9 100644 --- a/SL/CVar.pm +++ b/SL/CVar.pm @@ -721,7 +721,7 @@ sub format_to_template { # stupid template expects everything formated. except objects # do not use outside of print routines for legacy templates - return $::form->parse_amount(\%::myconfig, $value) if $config->{type} eq 'number'; + return $::form->format_amount(\%::myconfig, $value) if $config->{type} eq 'number'; return $value->to_lxoffice if $config->{type} eq 'date' && blessed $value && $value->can('to_lxoffice'); return $value; }