From 9b30f204dc407e04bd2c5d07e8f77f316182bc97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 17 Nov 2014 11:51:39 +0100 Subject: [PATCH] Einkaufsrechnungen: closedto beachten --- bin/mozilla/ir.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}); -- 2.20.1