Revision 2d44a547
Von Jan Büren vor mehr als 5 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
958 | 958 |
$form->{useasnew} = 1 if $is_collective_order == 1; |
959 | 959 |
|
960 | 960 |
if (!$form->{id}) { |
961 |
my $extra_days = $form->{type} eq 'sales_quotation' ? $::instance_conf->get_reqdate_interval : 1; |
|
961 |
my $extra_days = $form->{type} eq 'sales_quotation' ? $::instance_conf->get_reqdate_interval : |
|
962 |
$form->{type} eq 'sales_order' ? $::instance_conf->get_delivery_date_interval : 1; |
|
962 | 963 |
$form->{reqdate} = DateTime->today_local->next_workday(extra_days => $extra_days)->to_kivitendo; |
963 | 964 |
$form->{transdate} = DateTime->today_local->to_kivitendo; |
964 | 965 |
} |
Auch abrufbar als: Unified diff
Verkaufsaufträge: konfigurierbares Intervall für Lieferdatum-Berechnung