X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FSalesPurchase.pm;h=ab31b8c65e88b91db239eaceddd9540ace253d29;hb=feb6f563968f53e59511578429b1dd61fda52008;hp=2c045d2df6bc8e65f0ccacfeb7a6fd48e005353a;hpb=9275429ac6a1959c95c7f77e27bf6ae48f5ac4ea;p=kivitendo-erp.git diff --git a/SL/Controller/SalesPurchase.pm b/SL/Controller/SalesPurchase.pm index 2c045d2df..ab31b8c65 100644 --- a/SL/Controller/SalesPurchase.pm +++ b/SL/Controller/SalesPurchase.pm @@ -17,6 +17,11 @@ sub action_check_duplicate_invnumber { invnumber => $::form->{invnumber}, vendor_id => $::form->{vendor_id}, ); + # 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 + && $exists_ap->gldate == DateTime->today_local); + $_[0]->render(\ !!$exists_ap, { type => 'text' }); }