Fix: Le terme total de la tva payé doit s'appeler Total et non Total HT.
This commit is contained in:
parent
1cf55396a0
commit
fa395ba1b2
@ -67,40 +67,40 @@ function tva_paye($db, $y,$m)
|
|||||||
}
|
}
|
||||||
|
|
||||||
function pt ($db, $sql, $date) {
|
function pt ($db, $sql, $date) {
|
||||||
global $bc,$langs;
|
global $bc,$langs;
|
||||||
|
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$total = 0 ;
|
$total = 0;
|
||||||
print "<table class=\"noborder\" width=\"100%\">";
|
print "<table class=\"noborder\" width=\"100%\">";
|
||||||
print "<tr class=\"liste_titre\">";
|
print "<tr class=\"liste_titre\">";
|
||||||
print "<td nowrap width=\"60%\">$date</td>";
|
print "<td nowrap width=\"60%\">$date</td>";
|
||||||
print "<td align=\"right\">".$langs->trans("Amount")."</td>";
|
print "<td align=\"right\">".$langs->trans("Amount")."</td>";
|
||||||
print "<td> </td>\n";
|
print "<td> </td>\n";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$var=True;
|
$var=True;
|
||||||
while ($i < $num) {
|
while ($i < $num) {
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print "<td nowrap>$obj->dm</td>\n";
|
print "<td nowrap>$obj->dm</td>\n";
|
||||||
$total = $total + $obj->amount;
|
$total = $total + $obj->amount;
|
||||||
|
|
||||||
print "<td nowrap align=\"right\">".price($obj->amount)."</td><td nowrap align=\"right\">".$total."</td>\n";
|
print "<td nowrap align=\"right\">".price($obj->amount)."</td><td nowrap align=\"right\">".$total."</td>\n";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
}
|
||||||
|
print "<tr class=\"liste_total\"><td align=\"right\">".$langs->trans("Total")." :</td><td nowrap align=\"right\"><b>".price($total)."</b></td><td> </td></tr>";
|
||||||
|
|
||||||
|
print "</table>";
|
||||||
|
$db->free($result);
|
||||||
|
} else {
|
||||||
|
dolibar_print_error($db);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print "<tr class=\"liste_total\"><td align=\"right\">".$langs->trans("TotalHT")." :</td><td nowrap align=\"right\"><b>".price($total)."</b></td><td>euros</td></tr>";
|
|
||||||
|
|
||||||
print "</table>";
|
|
||||||
$db->free($result);
|
|
||||||
} else {
|
|
||||||
dolibar_print_error($db);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user