From ae45c5b76d87727e7113d7163e34a9f6444247e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 30 Dec 2010 18:08:51 +0100 Subject: [PATCH] =?utf8?q?Einkaufsrechnungen:=20Nicht=20auf=20den=20bereit?= =?utf8?q?s=20formatierten=20Wechselkurs=20pr=C3=BCfen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1517. --- bin/mozilla/ap.pl | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 06541ef05..35fef992e 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -244,17 +244,10 @@ sub form_header { $form->{forex} = $form->check_exchangerate( \%myconfig, $form->{currency}, $form->{transdate}, 'sell'); $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"); my $exchangerate = qq| {forex}> -- 2.20.1