/[dolibarr]/dolibarr/htdocs/telephonie/ca/gain.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/ca/gain.php

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

revision 1.4 by rodolphe, Fri Feb 18 14:26:53 2005 UTC revision 1.5 by rodolphe, Tue Aug 9 13:05:03 2005 UTC
# Line 67  if ($db->query($sql)) Line 67  if ($db->query($sql))
67    print '<td align="right">Gain</td>';    print '<td align="right">Gain</td>';
68    
69    print_liste_field_titre("Marge","gain.php","marge",'','','align="right"');    print_liste_field_titre("Marge","gain.php","marge",'','','align="right"');
70    print "</tr>\n";    print "<td>&nbsp;</td></tr>\n";
71    $var=True;    $var=True;
72    
73    while ($i < min($num,$conf->liste_limit))    while ($i < min($num,$conf->liste_limit))
# Line 75  if ($db->query($sql)) Line 75  if ($db->query($sql))
75        $row = $db->fetch_row($i);                $row = $db->fetch_row($i);        
76        $var=!$var;        $var=!$var;
77    
78          $marge = $row[4];
79    
80        print "<tr $bc[$var]>";        print "<tr $bc[$var]>";
81        print "<td>".$row[0]."</td>\n";        print "<td>".$row[0]."</td>\n";
82        print '<td align="right">'.price($row[1])." HT</td>\n";        print '<td align="right">'.price($row[1])." HT</td>\n";
83        print '<td align="right">'.price($row[2])." HT</td>\n";        print '<td align="right">'.price($row[2])." HT</td>\n";
84        print '<td align="right">'.round($row[4])." %</td>\n";        print '<td align="right">'.number_format(round($marge), 2, '.', ' ')." %</td>\n";
85          if ($marge < 0)
86            {
87              print '<td align="center">'.img_picto('','alerte').'</td>';
88            }
89          else
90            {
91              print '<td>&nbsp;</td>';
92            }
93        print "</tr>\n";        print "</tr>\n";
94        $i++;        $i++;
95      }      }

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

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