From 3fb014daf67acfbea062c5601b9445ca58f437ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 6 Nov 2015 12:01:57 +0100 Subject: [PATCH] Auftrags-Controller: Liefertermin --- SL/Controller/Order.pm | 1 + templates/webpages/order/tabs/basic_data.html | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 523334f3c..ed84673b2 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -51,6 +51,7 @@ sub action_add { my ($self) = @_; $self->order->transdate(DateTime->now_local()); + $self->order->reqdate(DateTime->today_local->next_workday) if !$self->order->reqdate; $self->_pre_render(); $self->render( diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index 508db12a5..c44e64681 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -111,6 +111,11 @@ [% L.date_tag('order.transdate', SELF.order.transdate) %] + + [% 'Reqdate' | $T8 %] + [% L.date_tag('order.reqdate', SELF.order.reqdate) %] + + [% 'Insert Date' | $T8 %] [% SELF.order.itime_as_date %] -- 2.20.1