From 510ca0b00027e4d1d0016da5f327ecd78b3b5425 Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Mon, 14 May 2007 10:01:40 +0000 Subject: [PATCH] =?utf8?q?Nullbuchungen=20f=C3=BChren=20ab=20jetzt=20zu=20?= =?utf8?q?einem=20Fehler.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/cp.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl index ee6ab98f3..c7e9a9b3d 100644 --- a/bin/mozilla/cp.pl +++ b/bin/mozilla/cp.pl @@ -306,9 +306,9 @@ sub form_header { - | . $locale->text('Amount') . qq| - format_amount(\%myconfig, $form->{amount}, 2) . qq| onBlur=\"check_right_number_format(this)\"> + | . $locale->text('Amount') . qq| + @@ -674,7 +674,7 @@ sub print { $form->{amount} = $form->format_amount(\%myconfig, $form->{amount}, 2); - $form->{decimal} .= "00"; + #$form->{decimal} .= "00"; $form->{decimal} = substr($form->{decimal}, 0, 2); $check = new CP $myconfig{countrycode}; @@ -747,6 +747,7 @@ sub check_form { exit; } + $form->error($locale->text('Zero amount posting!')) if ($form->{amount} eq "0,00" || $form->{amount} eq "0.00"); $form->error($locale->text('Date missing!')) unless $form->{datepaid}; $closedto = $form->datetonum($form->{closedto}, \%myconfig); -- 2.20.1