From: Thomas Kasulke Date: Mon, 14 May 2007 10:01:40 +0000 (+0000) Subject: Nullbuchungen führen ab jetzt zu einem Fehler. X-Git-Tag: release-2.4.3^2~328 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=510ca0b00027e4d1d0016da5f327ecd78b3b5425;p=kivitendo-erp.git Nullbuchungen führen ab jetzt zu einem Fehler. --- 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);