diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 5ae6d621745..2ca544d826c 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -81,7 +81,7 @@ print "
"; */ if ($user->comm > 0 && $conf->commercial ) { - $sql = "SELECT p.rowid, p.ref, s.nom FROM llx_propal as p, llx_societe as s"; + $sql = "SELECT p.rowid, p.ref, s.nom, s.idp FROM llx_propal as p, llx_societe as s"; $sql .= " WHERE p.fk_soc = s.idp AND p.fk_statut = 2"; if ($socidp) { @@ -103,7 +103,8 @@ if ($user->comm > 0 && $conf->commercial ) { $var=!$var; $obj = $db->fetch_object($i); - print "rowid\">$obj->ref".$obj->nom.""; + print "rowid\">$obj->ref"; + print ''.$obj->nom.''; $i++; } print "
"; @@ -237,7 +238,7 @@ if ($user->societe_id == 0) print '
  • Résultats
  • '; print '
  • Banque
  • '; } -print ''; +print '
    ';