X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ff159a4d47b9a2d10744dcfc23da2c63605c8a32..eeb5375ee7727c956cc357cc8f90b19d1bfe80b9:/SL/Controller/SalesPurchase.pm diff --git a/SL/Controller/SalesPurchase.pm b/SL/Controller/SalesPurchase.pm index ab31b8c65..59ab1951e 100644 --- a/SL/Controller/SalesPurchase.pm +++ b/SL/Controller/SalesPurchase.pm @@ -19,10 +19,10 @@ sub action_check_duplicate_invnumber { ); # we are modifying a existing daily booking - allow this if # booking conditions are not super strict - undef $exists_ap if ($::instance_conf->get_ap_changeable != 0 + undef $exists_ap if ($exists_ap + && $::instance_conf->get_ap_changeable != 0 && $exists_ap->gldate == DateTime->today_local); - $_[0]->render(\ !!$exists_ap, { type => 'text' }); }