Mise à jour changement format de la base de donnée

This commit is contained in:
Rodolphe Quiedeville 2003-09-09 15:55:49 +00:00
parent 797aa64aba
commit 08423493b6

View File

@ -40,7 +40,7 @@ print_titre("Chiffre d'affaire par soci
* *
*/ */
$sql = "SELECT sum(f.amount) as ca FROM llx_facture as f"; $sql = "SELECT sum(f.total) as ca FROM llx_facture as f";
if ($socidp) if ($socidp)
{ {
$sql .= " WHERE f.fk_soc = $socidp"; $sql .= " WHERE f.fk_soc = $socidp";
@ -60,7 +60,7 @@ print "<b>Total : ".price($catotal)."</b>";
if ($catotal == 0) { $catotal = 1; }; if ($catotal == 0) { $catotal = 1; };
$sql = "SELECT s.nom, s.idp, sum(f.amount) as ca"; $sql = "SELECT s.nom, s.idp, sum(f.total) as ca";
$sql .= " FROM llx_societe as s,llx_facture as f"; $sql .= " FROM llx_societe as s,llx_facture as f";
$sql .= " WHERE f.fk_soc = s.idp"; $sql .= " WHERE f.fk_soc = s.idp";
if ($socidp) if ($socidp)