projects
/
order_line_extra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 0 quantity not displayed
[order_line_extra.git]
/
includes
/
order_xtra_config.inc
diff --git
a/includes/order_xtra_config.inc
b/includes/order_xtra_config.inc
index c1a6fc017a2155ce5e8269dc7d256ec09ef02f91..bd7fa4d61189e1d7049f2378803c08774de1fb9a 100644
(file)
--- 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 = "";
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
// Array location => { delivery, parent }
// Location not listed are excluded
@@
-23,7
+24,8
@@
class OrderXtraConfig {
}
// True if the date before hold_until_date
}
// 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;
}
return date_diff2($hold_until_date, $date, 'd') > OrderXtraConfig::$pre_hold_offset;
}