wrong where cabyprodserv
This commit is contained in:
parent
89f6b66c2a
commit
b8b30a9af6
@ -263,11 +263,11 @@ if ($modecompta == 'CREANCES-DETTES')
|
||||
}
|
||||
}
|
||||
|
||||
$sql .= " AND (p.rowid IN ";
|
||||
$sql .= " (SELECT fk_product FROM ".MAIN_DB_PREFIX."categorie_product cp WHERE ";
|
||||
$sql .= " AND ";
|
||||
|
||||
if ($subcat) $sql .= "cp.fk_categorie IN (".$listofcatsql.")";
|
||||
else $sql .= "cp.fk_categorie = ".$selected_cat;
|
||||
$sql .= "))";
|
||||
|
||||
}
|
||||
if ($selected_soc > 0) $sql .= " AND soc.rowid=".$selected_soc;
|
||||
$sql .= " AND f.entity IN (".getEntity('invoice').")";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user