Bei Loginfehlern das MenĂ¼ nicht mitrendern
[kivitendo-erp.git] / bin / mozilla / ap.pl
index f961ead..9860530 100644 (file)
@@ -1445,6 +1445,9 @@ sub storno {
     $form->error($locale->text("Transaction has already been cancelled!"));
   }
 
+  $form->error($locale->text('Cannot post storno for a closed period!'))
+    if ( $form->date_closed($form->{transdate}, \%myconfig));
+
   AP->storno($form, \%myconfig, $form->{id});
 
   # saving the history