Fix: bad increment
This commit is contained in:
parent
c2d9fdb88f
commit
e3a546e535
@ -22,6 +22,7 @@
|
|||||||
<!-- BEGIN PHP TEMPLATE -->
|
<!-- BEGIN PHP TEMPLATE -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
$langs->load("bills");
|
||||||
if ($somethingshown) { echo '<br>'; }
|
if ($somethingshown) { echo '<br>'; }
|
||||||
if ($num > 1) print_titre($langs->trans("RelatedBills"));
|
if ($num > 1) print_titre($langs->trans("RelatedBills"));
|
||||||
else print_titre($langs->trans("RelatedBill"));
|
else print_titre($langs->trans("RelatedBill"));
|
||||||
@ -41,14 +42,13 @@ for ($i = 0 ; $i < $num ; $i++)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
?>
|
?>
|
||||||
<tr <?php echo $bc[$var]; ?> ><td>
|
<tr <?php echo $bc[$var]; ?> ><td>
|
||||||
<a href="<?php echo DOL_URL_ROOT.'/compta/facture.php?facid='.$linkedObjectBlock->id.'">'.img_object($langs->trans("ShowBill"),"bill").' '.$linkedObjectBlock->ref; ?></a></td>
|
<a href="<?php echo DOL_URL_ROOT.'/compta/facture.php?facid='.$linkedObjectBlock->id ?>"><?php echo img_object($langs->trans("ShowBill"),"bill").' '.$linkedObjectBlock->ref; ?></a></td>
|
||||||
<td align="center"><?php echo dol_print_date($linkedObjectBlock->date,'day'); ?></td>
|
<td align="center"><?php echo dol_print_date($linkedObjectBlock->date,'day'); ?></td>
|
||||||
<td align="right"><?php echo price($linkedObjectBlock->total_ht); ?></td>
|
<td align="right"><?php echo price($linkedObjectBlock->total_ht); ?></td>
|
||||||
<td align="right"><?php echo $linkedObjectBlock->getLibStatut(3); ?></td>
|
<td align="right"><?php echo $linkedObjectBlock->getLibStatut(3); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$total = $total + $linkedObjectBlock->total_ht;
|
$total = $total + $linkedObjectBlock->total_ht;
|
||||||
$i++;
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr class="liste_total">
|
<tr class="liste_total">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user