This commit is contained in:
Rodolphe Quiedeville 2006-01-16 16:03:57 +00:00
parent 00a2add135
commit 3628fb6e86

View File

@ -99,6 +99,7 @@ class FactureDetailTableurTwo {
$num = $this->db->num_rows($resql);
$total = 0;
dolibarr_syslog($num." lignes trouvées");
$xx = 1;
while ($row = $this->db->fetch_row($resql))
{
$sq = "SELECT ligne, date, numero, dest, dureetext, duree, cout_vente";
@ -120,8 +121,6 @@ class FactureDetailTableurTwo {
{
$obj = $this->db->fetch_object($resq);
$xx = $i + 1;
$page->write_string($xx, 0, $obj->ligne, $fdest);
$page->write_string($xx, 1, $obj->date, $fdest);
$page->write_string($xx, 2, $obj->numero, $fdest);
@ -130,6 +129,7 @@ class FactureDetailTableurTwo {
$page->write($xx, 5, $obj->cout_vente, $fp);
$i++;
$xx++;
}
$this->db->free($resq);
}