Fixing style errors.
This commit is contained in:
parent
0c106cbc12
commit
7a8db9c7d9
@ -106,13 +106,13 @@ class Warehouses extends DolibarrApi
|
|||||||
$sql = "SELECT t.rowid";
|
$sql = "SELECT t.rowid";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."entrepot as t";
|
$sql .= " FROM ".MAIN_DB_PREFIX."entrepot as t";
|
||||||
if ($category > 0) {
|
if ($category > 0) {
|
||||||
$sql .= ", ".MAIN_DB_PREFIX."categorie_societe as c";
|
$sql .= ", ".MAIN_DB_PREFIX."categorie_societe as c";
|
||||||
}
|
}
|
||||||
$sql .= ' WHERE t.entity IN ('.getEntity('stock').')';
|
$sql .= ' WHERE t.entity IN ('.getEntity('stock').')';
|
||||||
// Select warehouses of given category
|
// Select warehouses of given category
|
||||||
if ($category > 0) {
|
if ($category > 0) {
|
||||||
$sql .= " AND c.fk_categorie = ".$db->escape($category);
|
$sql .= " AND c.fk_categorie = ".$db->escape($category);
|
||||||
$sql .= " AND c.fk_warehouse = t.rowid ";
|
$sql .= " AND c.fk_warehouse = t.rowid ";
|
||||||
}
|
}
|
||||||
// Add sql filters
|
// Add sql filters
|
||||||
if ($sqlfilters)
|
if ($sqlfilters)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user