Revision b9024872
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
| SL/Model/Record.pm | ||
|---|---|---|
|
sales_quotation => {
|
||
|
get_new_reqdate => sub {
|
||
|
if ($::instance_conf->get_reqdate_on) {
|
||
|
return '';
|
||
|
} else {
|
||
|
return DateTime->today_local->next_workday(
|
||
|
extra_days => $::instance_conf->get_reqdate_interval());
|
||
|
} else {
|
||
|
return '';
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
sales_order => {
|
||
|
get_new_reqdate => sub {
|
||
|
if ($::instance_conf->get_deliverydate_on) {
|
||
|
return '';
|
||
|
} else {
|
||
|
return DateTime->today_local->next_workday(
|
||
|
extra_days => $::instance_conf->get_delivery_date_interval());
|
||
|
} else {
|
||
|
return '';
|
||
|
}
|
||
|
},
|
||
|
},
|
||
Auch abrufbar als: Unified diff
Model::Record: fix get_new_reqdate