/[dolibarr]/dolibarr/htdocs/telephonie/distributeurs/comm/commercial.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/distributeurs/comm/commercial.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by rodolphe, Wed Sep 14 12:12:08 2005 UTC revision 1.6 by rodolphe, Wed Sep 14 12:22:15 2005 UTC
# Line 82  if ($_GET["id"] && $_GET["did"]) Line 82  if ($_GET["id"] && $_GET["did"])
82    
83    $sql = "SELECT ".$db->pdate("p.datepo") . " as datepo, sum(p.montant)";    $sql = "SELECT ".$db->pdate("p.datepo") . " as datepo, sum(p.montant)";
84    $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_contrat_priseordre as p";    $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_contrat_priseordre as p";
85    $sql .= " WHERE p.fk_distributeur =".$distri->id;    $sql .= " WHERE p.fk_commercial =".$commercial->id;
86    $sql .= " GROUP BY date_format(datepo,'%Y%m') DESC";      $sql .= " GROUP BY date_format(datepo,'%Y%m') DESC";  
87    
88    $resql = $db->query($sql);    $resql = $db->query($sql);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26