From 5563e1162d014b09d591fd68e5317ebbb2212148 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 22 Nov 2006 16:25:36 +0000 Subject: [PATCH] Recommit von r1154 von skoehler: Nachtag zu r1152, fehlerhafte Abfrage beim Bezahlen von Rechnungen "0,00" ist nicht false --- bin/mozilla/ir.pl | 2 +- bin/mozilla/is.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 595c32a92..a9b8aeeea 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -963,7 +963,7 @@ sub post { if ($form->{currency} ne $form->{defaultcurrency}); for $i (1 .. $form->{paidaccounts}) { - if ($form->{"paid_$i"}) { + if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) { $datepaid = $form->datetonum($form->{"datepaid_$i"}, \%myconfig); $form->isblank("datepaid_$i", $locale->text('Payment date missing!')); diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 879d3d1b3..163ac1461 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -1360,7 +1360,7 @@ sub post { if ($form->{currency} ne $form->{defaultcurrency}); for $i (1 .. $form->{paidaccounts}) { - if ($form->{"paid_$i"}) { + if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) { $datepaid = $form->datetonum($form->{"datepaid_$i"}, \%myconfig); $form->isblank("datepaid_$i", $locale->text('Payment date missing!')); -- 2.20.1