Einkaufsrechnungen: closedto beachten
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 17 Nov 2014 10:51:39 +0000 (11:51 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 17 Nov 2014 12:15:21 +0000 (13:15 +0100)
bin/mozilla/ir.pl

index 951bce5..1ea357e 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});