From: Bernd Blessmann Date: Wed, 31 Aug 2011 14:22:58 +0000 (+0200) Subject: Wechselkurs ging bei Kreditoren/Debitoren-Buchungen verloren, wenn er kleiner 1 war. X-Git-Tag: release-2.7.0beta1~317 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f9c86f3fda5c81cc7f0498310d0570dbb3dd7792;p=kivitendo-erp.git Wechselkurs ging bei Kreditoren/Debitoren-Buchungen verloren, wenn er kleiner 1 war. --- diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index d90b06209..bc2986c27 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -684,12 +684,13 @@ $jsscript # format amounts if ($form->{"paid_$i"}) { $form->{"paid_$i"} = - $form->format_amount(\%myconfig, $form->{"paid_$i"}, 2); + $form->format_amount(\%myconfig, $form->{"paid_$i"}, 2); } - $form->{"exchangerate_$i"} = - $form->format_amount(\%myconfig, $form->{"exchangerate_$i"}); if ($form->{"exchangerate_$i"} == 0) { $form->{"exchangerate_$i"} = ""; + } else { + $form->{"exchangerate_$i"} = + $form->format_amount(\%myconfig, $form->{"exchangerate_$i"}); } print qq|{"gldate_$i"}>\n|; diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 8a04ac517..8ec365ada 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -727,11 +727,11 @@ $jsscript $form->{"paid_$i"} = $form->format_amount(\%myconfig, $form->{"paid_$i"}, 2); } - $form->{"exchangerate_$i"} = - $form->format_amount(\%myconfig, $form->{"exchangerate_$i"}); - if ($form->{"exchangerate_$i"} == 0) { $form->{"exchangerate_$i"} = ""; + } else { + $form->{"exchangerate_$i"} = + $form->format_amount(\%myconfig, $form->{"exchangerate_$i"}); } $exchangerate = qq| |;