forked from Wavyzz/dolibarr
Fix test
This commit is contained in:
@@ -3570,7 +3570,7 @@ class Product extends CommonObject
|
||||
$sql .= ", ".$this->db->prefix()."societe_commerciaux as sc";
|
||||
}
|
||||
$sql .= " WHERE m.rowid = mp.fk_mo";
|
||||
$sql .= " AND m.entity IN (".getEntity($forVirtualStock && getDolGlobalString('STOCK_CALCULATE_VIRTUAL_STOCK_TRANSVERSE_MODE') ? 'stock' : 'mrp').")";
|
||||
$sql .= " AND m.entity IN (".getEntity(($forVirtualStock && getDolGlobalString('STOCK_CALCULATE_VIRTUAL_STOCK_TRANSVERSE_MODE')) ? 'stock' : 'mrp').")";
|
||||
$sql .= " AND mp.fk_product = ".((int) $this->id);
|
||||
$sql .= " AND mp.disable_stock_change IN (0)";
|
||||
if (!$user->hasRight('societe', 'client', 'voir') && !$forVirtualStock) {
|
||||
|
||||
Reference in New Issue
Block a user