Merge pull request #18976 from PyroShape/142

FIX : #18634 : Problem of virtual stock with reception module enabled
This commit is contained in:
Laurent Destailleur 2021-10-16 21:23:08 +02:00 committed by GitHub
commit 68bb625ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5281,7 +5281,7 @@ class Product extends CommonObject
} }
$stock_commande_fournisseur = $this->stats_commande_fournisseur['qty']; $stock_commande_fournisseur = $this->stats_commande_fournisseur['qty'];
} }
if (((!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || !empty($conf->supplier_order->enabled) || !empty($conf->supplier_invoice->enabled)) && empty($conf->reception->enabled)) { if (((!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || !empty($conf->supplier_order->enabled) || !empty($conf->supplier_invoice->enabled)) && !empty($conf->reception->enabled)) {
$filterStatus = '4'; $filterStatus = '4';
if (isset($includedraftpoforvirtual)) { if (isset($includedraftpoforvirtual)) {
$filterStatus = '0,'.$filterStatus; $filterStatus = '0,'.$filterStatus;