* more than one in the cart.
*/
/* Default behavior check if there is enough quantity on hand and change the css
* more than one in the cart.
*/
/* Default behavior check if there is enough quantity on hand and change the css
static function default_get_dispatchable_quantity($line_item, $location, $date, $qoh) {
static function default_get_dispatchable_quantity($line_item, $location, $date, $qoh) {
if ($SysPrefs->allow_negative_stock() || ($line_item->qty_dispatched <= $qoh)) {
return true;
}
return array($qoh, 'stockmankobg');
if ($SysPrefs->allow_negative_stock() || ($line_item->qty_dispatched <= $qoh)) {
return true;
}
return array($qoh, 'stockmankobg');
unset($code, $hook_class);
}
// install hooks provided by active extensions
unset($code, $hook_class);
}
// install hooks provided by active extensions
$hook_class = 'hooks_'.$ext['package'];
if ($ext['active'] && class_exists($hook_class)) {
$Hooks[$ext['package']] = new $hook_class;
}
$hook_class = 'hooks_'.$ext['package'];
if ($ext['active'] && class_exists($hook_class)) {
$Hooks[$ext['package']] = new $hook_class;
}