From: Moritz Bunkus Date: Wed, 19 Jan 2011 09:31:54 +0000 (+0100) Subject: Debitorenbuchungen: Nicht auf den bereits formatierten Wechselkurs prüfen. X-Git-Tag: release-2.6.2beta2~11 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d34ee91386259e41c85c100a6736e172bfcd4e69;p=kivitendo-erp.git Debitorenbuchungen: Nicht auf den bereits formatierten Wechselkurs prüfen. Fix für Bug 1554. --- diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 585301c25..3d4fe2664 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -271,17 +271,9 @@ sub form_header { $form->{exchangerate} = $form->{forex} if $form->{forex}; # format amounts - $form->{exchangerate} = - $form->format_amount(\%myconfig, $form->{exchangerate}); - - if ($form->{exchangerate} == 0) { - $form->{exchangerate} = ""; - } - - $form->{creditlimit} = - $form->format_amount(\%myconfig, $form->{creditlimit}, 0, "0"); - $form->{creditremaining} = - $form->format_amount(\%myconfig, $form->{creditremaining}, 0, "0"); + $form->{exchangerate} = $form->{exchangerate} ? $form->format_amount(\%myconfig, $form->{exchangerate}) : ''; + $form->{creditlimit} = $form->format_amount(\%myconfig, $form->{creditlimit}, 0, "0"); + $form->{creditremaining} = $form->format_amount(\%myconfig, $form->{creditremaining}, 0, "0"); $exchangerate = qq| {forex}>