diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index f0c500299d5..d1a42917642 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -549,7 +549,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire) { $langs->load("propal"); - $sql = "SELECT s.nom, s.rowid, p.rowid as propalid, p.price, p.ref, p.fk_statut, ".$db->pdate("p.datep")." as dp"; + $sql = "SELECT s.nom, s.rowid, p.rowid as propalid, p.total_ht, p.ref, p.fk_statut, ".$db->pdate("p.datep")." as dp"; if (!$user->rights->commercial->client->voir && !$socid) $sql .= ", sc.fk_soc, sc.fk_user"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."propal as p"; if (!$user->rights->commercial->client->voir && !$socid) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; @@ -598,11 +598,11 @@ if ($conf->propal->enabled && $user->rights->propale->lire) print "rowid."\">".img_object($langs->trans("ShowCompany"),"company")." ".dolibarr_trunc($obj->nom,44)."\n"; print ""; print dolibarr_print_date($obj->dp,'day')."\n"; - print "".price($obj->price).""; - print "".$propalstatic->LibStatut($obj->fk_statut,3)."\n"; + print "".price($obj->total_ht).""; + print "".$propalstatic->LibStatut($obj->fk_statut,3)."\n"; print "\n"; $i++; - $total += $obj->price; + $total += $obj->total_ht; } if ($total>0) { print ''.$langs->trans("Total")."".price($total)." ";