Un mauvais placement d'une ligne de commande faisait que l'état des "cumuls" ne cumulait rien.
This commit is contained in:
parent
a0ecb8dbd9
commit
e9ab6a81ae
@ -59,7 +59,7 @@ if ($socidp)
|
|||||||
}
|
}
|
||||||
$sql .= " GROUP BY dm";
|
$sql .= " GROUP BY dm";
|
||||||
|
|
||||||
pt($db, $sql,"Mois cumulés");
|
pt($db, $sql,"Suivi cumul par mois");
|
||||||
|
|
||||||
|
|
||||||
print "<br>";
|
print "<br>";
|
||||||
@ -72,7 +72,7 @@ if ($socidp)
|
|||||||
}
|
}
|
||||||
$sql .= " GROUP BY dm DESC";
|
$sql .= " GROUP BY dm DESC";
|
||||||
|
|
||||||
pt($db, $sql,"Année");
|
pt($db, $sql,"Suivi cumul par année");
|
||||||
|
|
||||||
print "</td></tr></table>";
|
print "</td></tr></table>";
|
||||||
|
|
||||||
@ -112,8 +112,6 @@ function pt ($db, $sql, $date)
|
|||||||
print "<TD align=\"right\">".$total."</TD><td> </td>\n";
|
print "<TD align=\"right\">".$total."</TD><td> </td>\n";
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
|
|
||||||
$total = $total + $obj->amount;
|
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print '<tr class="total"><td align="right">Total :</td><td align="right"><b>'.price($total).'</b></td><td>'.MAIN_MONNAIE.' HT</td></tr>';
|
print '<tr class="total"><td align="right">Total :</td><td align="right"><b>'.price($total).'</b></td><td>'.MAIN_MONNAIE.' HT</td></tr>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user