From 00d97258c6c6118002cb230a758747963661ca84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 13 Apr 2018 16:41:01 +0200 Subject: [PATCH] =?utf8?q?Order-Controller:=20Angebotsg=C3=BCltigkeitsinte?= =?utf8?q?rvall=20beachten?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Wie beim alten Angeboten auch, soll die Gültigkeit des Angebots aus der Mandatenkonfiguration gesetzt werden, falls hier ein Wert vorhanden ist. --- SL/Controller/Order.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 36896ee11..92ef60c8c 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -56,7 +56,8 @@ sub action_add { my ($self) = @_; $self->order->transdate(DateTime->now_local()); - $self->order->reqdate(DateTime->today_local->next_workday) if !$self->order->reqdate; + my $extra_days = $self->type eq _sales_quotation_type() ? $::instance_conf->get_reqdate_interval : 1; + $self->order->reqdate(DateTime->today_local->next_workday(extra_days => $extra_days)) if !$self->order->reqdate; $self->_pre_render(); $self->render( -- 2.20.1