Fix test
This commit is contained in:
parent
58df1b74a9
commit
3ef67a68cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue