X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/99d8aaf4fd6df466ee540770cc7e80ae724dd4ad..b092fef706251cb7f7a10f45036e4b7b2a1bacb0:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index 52a5a61d6..8e746f43c 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -795,6 +795,11 @@ sub retrieve { if (!$form->{id}) { my $wday = (localtime(time))[6]; my $next_workday = $wday == 5 ? 3 : $wday == 6 ? 2 : 1; + + # if we have a client configured interval for sales quotation, we add this + $next_workday += $::instance_conf->get_reqdate_interval if ($::instance_conf->get_reqdate_interval && + $form->{type} eq 'sales_quotation' ); + $query_add = qq|, current_date AS transdate, date(current_date + interval '${next_workday} days') AS reqdate|; }