Revision d03c3638
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/Model/Record.pm | ||
---|---|---|
253 | 253 |
sales_quotation => { |
254 | 254 |
get_new_reqdate => sub { |
255 | 255 |
if ($::instance_conf->get_reqdate_on) { |
256 |
return ''; |
|
257 |
} else { |
|
258 | 256 |
return DateTime->today_local->next_workday( |
259 | 257 |
extra_days => $::instance_conf->get_reqdate_interval()); |
258 |
} else { |
|
259 |
return ''; |
|
260 | 260 |
} |
261 | 261 |
}, |
262 | 262 |
}, |
263 | 263 |
sales_order => { |
264 | 264 |
get_new_reqdate => sub { |
265 | 265 |
if ($::instance_conf->get_deliverydate_on) { |
266 |
return ''; |
|
267 |
} else { |
|
268 | 266 |
return DateTime->today_local->next_workday( |
269 | 267 |
extra_days => $::instance_conf->get_delivery_date_interval()); |
268 |
} else { |
|
269 |
return ''; |
|
270 | 270 |
} |
271 | 271 |
}, |
272 | 272 |
}, |
Auch abrufbar als: Unified diff
Model::Record: fix get_new_reqdate