class OrderXtraConfig {
// Location code of the default or main location
static $default_location = "";
+ static $autopick_null = true;
// Array location => { delivery, parent }
// Location not listed are excluded
}
// True if the date before hold_until_date
- static function early($hold_until_date, $date) {
+ static function early($hold_until_date, $date=null) {
+ if(!$date) $date = Today();
return date_diff2($hold_until_date, $date, 'd') > OrderXtraConfig::$pre_hold_offset;
}