X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fis.pl;h=220c993aaf069c9a3272dc7e409dbb5c45c4f99f;hb=44d893c2d2589ac8d09d255f9be0e38d74c48407;hp=d7e99b76dd98c705c85d9cb1f1f0f7d7a8080282;hpb=2174b7ba062594ce95f9ddf5cb079673e13c3c15;p=kivitendo-erp.git diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index d7e99b76d..220c993aa 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -382,7 +382,6 @@ sub form_header { map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}]; $form->{jsscript} = 1; - $::request->layout->use_stylesheet('presenter/record/record_list.css'); $form->header(); print $form->parse_html_template("is/form_header", \%TMPL_VAR); @@ -717,6 +716,8 @@ sub post { my $closedto = $form->datetonum($form->{closedto}, \%myconfig); my $invdate = $form->datetonum($form->{invdate}, \%myconfig); + $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 ($invdate <= $closedto);