@@ -274,7 +289,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
{
$langs->load("propal");
$sql="SELECT s.nom, s.rowid, p.rowid as propalid, p.total as total_ttc, p.total_ht, p.ref, p.fk_statut, p.datep as dp";
$sql="SELECT s.nom as socname, s.rowid as socid, s.canvas, s.client, p.rowid as propalid, p.total as total_ttc, p.total_ht, p.ref, p.fk_statut, p.datep as dp";
$sql.=" FROM ".MAIN_DB_PREFIX."societe as s";
$sql.=", ".MAIN_DB_PREFIX."propal as p";
if(!$user->rights->societe->client->voir&&!$socid)$sql.=", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
...
...
@@ -325,7 +340,12 @@ if ($conf->propal->enabled && $user->rights->propale->lire)