From 3df0bf0644d42357ee0baf9f5b05efbbfc8d0135 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 316198eed..b795d14fc 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 1a601af50..32880cf6e 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -116,6 +116,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