From: Bernd Bleßmann Date: Fri, 6 Nov 2015 11:01:57 +0000 (+0100) Subject: Auftrags-Controller: Liefertermin X-Git-Tag: release-3.4.1~342 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3df0bf0644d42357ee0baf9f5b05efbbfc8d0135;p=kivitendo-erp.git Auftrags-Controller: Liefertermin --- 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 %]