Skip to content

Commit

Permalink
Remove meaningless last item in printable invoice.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Gneady committed Jun 10, 2021
1 parent 163641e commit 0c547f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/hooks/invoice-templates/corporate_clients.php
Expand Up @@ -66,7 +66,7 @@
</thead>

<tbody>
<?php for($i = 0; $i < count($results); $i++) { ?>
<?php for($i = 0; $i < (count($results) - 1); $i++) { ?>
<tr>
<td class="text-left"><?php echo $results[$i]['item_description']; ?></td>
<td class="text-right"><?php echo number_format($results[$i]['unit_price'], 2); ?></td>
Expand Down
Expand Up @@ -66,7 +66,7 @@
</thead>

<tbody>
<?php for($i = 0; $i < count($results); $i++) { ?>
<?php for($i = 0; $i < (count($results) - 1); $i++) { ?>
<tr>
<td class="text-left"><?php echo $results[$i]['item_description']; ?></td>
<td class="text-right"><?php echo number_format($results[$i]['unit_price'], 2); ?></td>
Expand Down

0 comments on commit 0c547f5

Please sign in to comment.