From: Sven Schöling Date: Mon, 17 Nov 2014 10:51:39 +0000 (+0100) Subject: Einkaufsrechnungen: closedto beachten X-Git-Tag: release-3.2.0beta~245 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9b30f204dc407e04bd2c5d07e8f77f316182bc97;p=kivitendo-erp.git Einkaufsrechnungen: closedto beachten --- diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 951bce515..1ea357ec4 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -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});