From 1f7101253f475d7881a37230be321fb385462824 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20K=C3=B6hler?= Date: Mon, 12 Jun 2006 13:43:42 +0000 Subject: [PATCH] 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 264100e74..c896836be 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -875,7 +875,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 7bbcc12a7..b5479473c 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -1061,7 +1061,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