Removed redundant functions from Invoice, optimised Invoice tables
This commit is contained in:
@@ -22,11 +22,11 @@
|
||||
|
||||
<tbody>
|
||||
@foreach ($o->query_invoice_summary()->having('balance','>',0)->get() as $oo)
|
||||
<tr @if ($oo->due_date->isPast()) class="table-danger" @endif>
|
||||
<tr @if ($oo->due_at->isPast()) class="table-danger" @endif>
|
||||
<td>{{ $oo->account->name }}</td>
|
||||
<td><a href="{{ url('u/invoice',$oo->id) }}">{{ $oo->sid }}</a></td>
|
||||
<td>{{ $oo->date_orig->format('Y-m-d') }}</td>
|
||||
<td>{{ $oo->due_date->format('Y-m-d') }}</td>
|
||||
<td>{{ $oo->created_at->format('Y-m-d') }}</td>
|
||||
<td>{{ $oo->due_at->format('Y-m-d') }}</td>
|
||||
<td class="text-right">${{ number_format($oo->total,2) }}</td>
|
||||
<td class="text-right">${{ number_format($oo->paid,2) }}</td>
|
||||
<td class="text-right">${{ number_format($oo->due,2) }}</td>
|
||||
|
Reference in New Issue
Block a user