]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/ir.pl
Einkaufsrechnungen: closedto beachten
[mfinanz.git] / bin / mozilla / ir.pl
index 951bce515780c73bce59bd7d344d93ca91e72fc3..1ea357ec484b46bc2961d1b327067e579c1f9876 100644 (file)
@@ -705,7 +705,8 @@ sub post {
 
   $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->error($locale->text('Cannot post invoice for a closed period!'))
+    if ($invdate <= $closedto);
 
   $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
     if ($form->{currency} ne $form->{defaultcurrency});