/[dolibarr]/dolibarr/htdocs/telephonie/script/commission.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/script/commission.php

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

revision 1.9 by rodolphe, Thu Nov 10 10:06:27 2005 UTC revision 1.10 by rodolphe, Thu Nov 10 10:15:31 2005 UTC
# Line 102  $resql = $db->query($sql); Line 102  $resql = $db->query($sql);
102        
103  if ( $resql )  if ( $resql )
104  {  {
105    $num = $db->num_rows($resql);    while ($row = $db->fetch_row($resql))
   $i = 0;  
   
   while ($i < $num)  
106      {      {
       $row = $db->fetch_row($resql);  
   
107        array_push($distributeurs, $row[0]);        array_push($distributeurs, $row[0]);
       $i++;  
108      }      }
109    $db->free($resql);    $db->free($resql);
110  }  }
# Line 229  if ( $resql ) Line 223  if ( $resql )
223        $sqli .= ",".ereg_replace(",",".",$comm);        $sqli .= ",".ereg_replace(",",".",$comm);
224        $sqli .= ",".ereg_replace(",",".",$pourcent);        $sqli .= ",".ereg_replace(",",".",$pourcent);
225    
226        if ($date_regul < $year.$month)        if ($obj->date_regul < $year.$month)
227          {          {
228            $sqli .= ",0)";            $sqli .= ",0)";
229          }          }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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