X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Forder_xtra_config.inc;h=bd7fa4d61189e1d7049f2378803c08774de1fb9a;hb=HEAD;hp=c1a6fc017a2155ce5e8269dc7d256ec09ef02f91;hpb=ace5b663f6b6e3b2d1c45d754853f319322d2e65;p=order_line_extra.git diff --git a/includes/order_xtra_config.inc b/includes/order_xtra_config.inc index c1a6fc0..bd7fa4d 100644 --- a/includes/order_xtra_config.inc +++ b/includes/order_xtra_config.inc @@ -4,6 +4,7 @@ require_once($path_to_root.'/'.'includes/date_functions.inc'); 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 @@ -23,7 +24,8 @@ class OrderXtraConfig { } // 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; }