From: Moritz Bunkus Date: Wed, 22 Nov 2006 16:25:36 +0000 (+0000) Subject: Recommit von r1154 von skoehler: Nachtag zu r1152, fehlerhafte Abfrage beim Bezahlen... X-Git-Tag: release-2.4.0^2~212 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5563e1162d014b09d591fd68e5317ebbb2212148;p=kivitendo-erp.git Recommit von r1154 von skoehler: Nachtag zu r1152, fehlerhafte Abfrage beim Bezahlen von Rechnungen "0,00" ist nicht false --- 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!'));