Merge pull request #23171 from Easya-Solutions/new-inventory-without-kit
NEW inventory without virtual products (kits)
This commit is contained in:
commit
18bbbf579d
1 changed files with 7 additions and 0 deletions
|
|
@ -309,6 +309,13 @@ class Inventory extends CommonObject
|
|||
$sql .= " AND cp.fk_categorie IN (".$this->db->sanitize($this->categories_product).")";
|
||||
$sql .= ")";
|
||||
}
|
||||
if (getDolGlobalInt('PRODUIT_SOUSPRODUITS')) {
|
||||
$sql .= " AND NOT EXISTS (";
|
||||
$sql .= " SELECT pa.rowid";
|
||||
$sql .= " FROM ".$this->db->prefix()."product_association as pa";
|
||||
$sql .= " WHERE pa.fk_product_pere = ps.fk_product";
|
||||
$sql .= ")";
|
||||
}
|
||||
|
||||
$inventoryline = new InventoryLine($this->db);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue