From: Moritz Bunkus Date: Mon, 12 Feb 2007 09:42:42 +0000 (+0000) Subject: Leeren String auch als "nicht gesetzt" deuten. X-Git-Tag: release-2.4.2~123 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/377ff40990680968fefeeb65b6e6935fcf9fcf35 Leeren String auch als "nicht gesetzt" deuten. --- diff --git a/SL/Form.pm b/SL/Form.pm index 44d857c86..95cd80e8e 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -653,7 +653,7 @@ sub format_amount { } my $neg = ($amount =~ s/-//); - if (defined($places)) { + if (defined($places) && ($places ne '')) { if ($places < 0) { $amount *= 1; $places *= -1;