include_once('includes/order_xtra_config.inc');
OrderXtraConfig::$default_location = 'DEF';
+OrderXtraConfig::$autopick_null = false;
OrderXtraConfig::$locations = array(
'C4' => array('delivery' => '2013-06-01')
,'C5' => array('delivery' => '2013-07-31')
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
foreach($row as $key => $value) { $$key = $value; }
$available = max(min($quantity-$held, $qoh-$quantity_before-$held) ,0 );
- insert_pick($stock_id, $order_id, $detail_id, $debtor_no, $branch_code, $available, $quantity);
+ if($available || OrderXtraConfig::$autopick_null)
+ insert_pick($stock_id, $order_id, $detail_id, $debtor_no, $branch_code, $available, $quantity);
}
}