]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/ir.pl
Implementiert Ticket 1897 Zukunftsbuchungen vermeiden
[mfinanz.git] / bin / mozilla / ir.pl
index 4209fdf6addc989e1d9f43bc19fe2abc70df7e07..b226bb011b45d58460f15207b4df665926af8347 100644 (file)
@@ -722,6 +722,8 @@ sub post {
   my $invdate      = $form->datetonum($form->{invdate},  \%myconfig);
   my $max_datepaid = _max_datepaid();
 
+  $form->error($locale->text('Cannot post transaction above the maximum future booking date!'))
+    if ($form->date_max_future($invdate, \%myconfig));
   $form->error($locale->text('Cannot post invoice for a closed period!')) if $max_datepaid && $form->date_closed($max_datepaid, \%myconfig);
 
   $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))