]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/gl.pl
Implementiert Ticket 1897 Zukunftsbuchungen vermeiden
[mfinanz.git] / bin / mozilla / gl.pl
index 4c97bd028f9aa2c26eaedfb206b8da531b1c9075..c508ff1f7b5a8c3b997726daa1a1f3c173786111 100644 (file)
@@ -1115,6 +1115,9 @@ sub post_transaction {
   $form->{taxincluded} = 0 if !$taxtotal;
 
   # this is just for the wise guys
+
+  $form->error($locale->text('Cannot post transaction above the maximum future booking date!'))
+    if ($form->date_max_future($form->{"transdate"}, \%myconfig));
   $form->error($locale->text('Cannot post transaction for a closed period!'))
     if ($form->date_closed($form->{"transdate"}, \%myconfig));
   if ($form->round_amount($debit, 2) != $form->round_amount($credit, 2)) {