Browse Source

Remove invoice print out table tfoot

Table tfoot contains invoice total, if we use tfoot
for multi page invoice item listing, the tfoot will
be shown on each page (which we don't want).

If we use tbody, the total rows will only shown
on the bottom of the invoice item listing table.
pull/24/head
Nafies Luthfi 7 years ago
parent
commit
50e757933b
  1. 4
      resources/views/invoices/pdf.blade.php

4
resources/views/invoices/pdf.blade.php

@ -116,8 +116,6 @@
$subtotal += $item['amount'];
@endphp
@endforeach
</tbody>
<tfoot>
@if ($invoice->discount)
<tr>
<th colspan="2" class="text-right">{{ __('invoice.subtotal') }} :</th>
@ -135,7 +133,7 @@
<th colspan="2" class="text-right">{{ trans('app.total') }}</th>
<th colspan="2" class="text-right">{{ formatRp($invoice->amount) }}</th>
</tr>
</tfoot>
</tbody>
</table>
</td>
</tr>

Loading…
Cancel
Save