mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
invoices-table fix for balance due
This commit is contained in:
parent
2bb84fdbd9
commit
a1e11cf161
@ -87,7 +87,7 @@ class InvoiceController extends Controller
|
||||
$total = $invoices->sum('balance');
|
||||
|
||||
$invoices = $invoices->filter(function ($invoice) {
|
||||
return $invoice->isPayable();
|
||||
return $invoice->isPayable() && $invoice->balance > 0;
|
||||
});
|
||||
|
||||
if ($invoices->count() == 0) {
|
||||
|
@ -86,7 +86,7 @@
|
||||
{!! App\Models\Invoice::badgeForStatus($invoice->status) !!}
|
||||
</td>
|
||||
<td class="flex items-center justify-end px-6 py-4 text-sm font-medium leading-5 whitespace-no-wrap">
|
||||
@if($invoice->isPayable())
|
||||
@if($invoice->isPayable() && $invoice->balance > 0)
|
||||
<form action="{{ route('client.invoices.bulk') }}" method="post">
|
||||
@csrf
|
||||
<input type="hidden" name="invoices[]" value="{{ $invoice->hashed_id }}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user