Remove not complete order from virtual stock
This commit is contained in:
parent
4fba60d2bb
commit
91164951de
@ -5271,7 +5271,7 @@ class Product extends CommonObject
|
||||
$stock_sending_client = $this->stats_expedition['qty'];
|
||||
}
|
||||
if ((!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || !empty($conf->supplier_order->enabled)) {
|
||||
$filterStatus = empty($conf->global->SUPPLIER_ORDER_STATUS_FOR_VIRTUAL_STOCK) ? '2,3,4' : $conf->global->SUPPLIER_ORDER_STATUS_FOR_VIRTUAL_STOCK;
|
||||
$filterStatus = empty($conf->global->SUPPLIER_ORDER_STATUS_FOR_VIRTUAL_STOCK) ? '3,4' : $conf->global->SUPPLIER_ORDER_STATUS_FOR_VIRTUAL_STOCK;
|
||||
if (isset($includedraftpoforvirtual)) {
|
||||
$filterStatus = '0,1,2,'.$filterStatus; // 1,2 may have already been inside $filterStatus but it is better to have twice than missing $filterStatus does not include them
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user