]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/ap.pl
Nullbuchungsüberprüfung und dazugehörige Übersetzungen
[mfinanz.git] / bin / mozilla / ap.pl
index ac63057278a2286b4d0cf5e8a0e0f9b507c5f619..83425da1aaadefe65230066ca0effaae9b269848 100644 (file)
@@ -998,6 +998,7 @@ sub post_payment {
 
       $form->isblank("datepaid_$i", $locale->text('Payment date missing!'));
 
+      $form->error($locale->text('Zero amount posting!')) if !$form->parse_amount(\%myconfig, $form->{"amount_$i"});
       $form->error($locale->text('Cannot post payment for a closed period!'))
         if ($datepaid <= $closedto);
 
@@ -1032,6 +1033,7 @@ sub post {
   $closedto  = $form->datetonum($form->{closedto},  \%myconfig);
   $transdate = $form->datetonum($form->{transdate}, \%myconfig);
 
+  $form->error($locale->text('Zero amount posting!')) if !$form->parse_amount(\%myconfig, $form->{amount});
   $form->error($locale->text('Cannot post transaction for a closed period!'))
     if ($transdate <= $closedto);
 
@@ -1045,6 +1047,7 @@ sub post {
 
       $form->isblank("datepaid_$i", $locale->text('Payment date missing!'));
 
+      $form->error($locale->text('Zero amount posting!')) if !$form->parse_amount(\%myconfig, $form->{"amount_$i"});
       $form->error($locale->text('Cannot post payment for a closed period!'))
         if ($datepaid <= $closedto);