Use virtual stock when this has been configured
When "Use virtual stock by default, instead of physical stock, for replenishment feature" has been set in configuration, this should really be used. Otherwise only physically missing items will be shown in replenishment.
This commit is contained in:
parent
15dc5f9d23
commit
db0d352af3
@ -89,7 +89,7 @@ if (! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT)
|
||||
{
|
||||
$virtualdiffersfromphysical=1; // According to increase/decrease stock options, virtual and physical stock may differs.
|
||||
}
|
||||
$usevirtualstock=0;
|
||||
$usevirtualstock = !empty($conf->global->STOCK_USE_VIRTUAL_STOCK);
|
||||
if ($mode == 'virtual') $usevirtualstock=1;
|
||||
|
||||
$parameters=array();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user