From 04a2f2e779fabb1faa836937504d4ce8bf906a06 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 14 Dec 2006 15:16:22 +0000 Subject: [PATCH] =?utf8?q?An=20einigen=20Stellen=20(z.B.=20beim=20Erfassen?= =?utf8?q?=20von=20Zahlungsausg=C3=A4ngen=20und=20-eing=C3=A4ngen)=20wird?= =?utf8?q?=20=C3=BCberpr=C3=BCft,=20ob=20eine=20Zeile=20leer=20ist,=20inde?= =?utf8?q?m=20der=20Betrag=20=C3=BCberpr=C3=BCft=20wird.=20Das=20muss=20ab?= =?utf8?q?er=20mit=20"$form->parse=5Famount()=20geschehen,=20weil=20ein=20?= =?utf8?q?simples=20"if=20($form->{feldname})"=20auch=20dann=20wahr=20ist,?= =?utf8?q?=20wenn=20die=20Zahl=20"0,00"=20ist.=20Fix=20f=C3=BCr=20Bugzilla?= =?utf8?q?=20#457.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ap.pl | 4 ++-- bin/mozilla/ar.pl | 4 ++-- bin/mozilla/cp.pl | 2 +- bin/mozilla/ir.pl | 2 +- bin/mozilla/is.pl | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 4f1712b26..9cc84e7fe 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -844,7 +844,7 @@ sub update { ($form->{taxincluded}) ? $form->{invtotal} : $form->{invtotal} + $totaltax; for $i (1 .. $form->{paidaccounts}) { - if ($form->{"paid_$i"}) { + if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) { map { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) @@ -892,7 +892,7 @@ sub post { delete($form->{AP}); 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/ar.pl b/bin/mozilla/ar.pl index e867d8916..e2fcac3a6 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -868,7 +868,7 @@ sub update { ($form->{taxincluded}) ? $form->{invtotal} : $form->{invtotal} + $totaltax; for $i (1 .. $form->{paidaccounts}) { - if ($form->{"paid_$i"}) { + if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) { map { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) @@ -917,7 +917,7 @@ sub post { delete($form->{AR}); 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/cp.pl b/bin/mozilla/cp.pl index ce4174742..f5e2805a3 100644 --- a/bin/mozilla/cp.pl +++ b/bin/mozilla/cp.pl @@ -762,7 +762,7 @@ sub check_form { $form->{amount} = $amount; for $i (1 .. $form->{rowcount}) { - if ($form->{"paid_$i"}) { + if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) { $amount -= $form->parse_amount($myconfig, $form->{"paid_$i"}); push(@{ $form->{paid} }, $form->{"paid_$i"}); diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 1f7d34682..401f56af9 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -927,7 +927,7 @@ sub storno { sub post_payment { $lxdebug->enter_sub(); 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 1be623fe8..6b0041853 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -1179,7 +1179,7 @@ sub update { ))); for $i (1 .. $form->{paidaccounts}) { - if ($form->{"paid_$i"}) { + if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) { map { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) @@ -1323,7 +1323,7 @@ sub update { sub post_payment { $lxdebug->enter_sub(); 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