Fixed field name

This commit is contained in:
Raphaël Doursenaud 2013-06-04 18:40:46 +02:00
parent 7ecafc2e54
commit 880a27f827

View File

@ -98,7 +98,7 @@ if ($mode == 'search')
if ($search_categ) $sql.= " AND s.rowid = cs.fk_societe"; // Join for the needed table to filter by categ
if (! $user->rights->societe->lire || ! $user->rights->fournisseur->lire)
{
if (! $user->rights->fournisseur->lire) $sql.=" AND s.fourn != 1";
if (! $user->rights->fournisseur->lire) $sql.=" AND s.fournisseur != 1";
}
// Insert sale filter
if ($search_sale)