From 899784cf45bebdfc206dc1a7b1cf67d6507136c4 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 11 May 2021 22:03:44 +1000 Subject: [PATCH] Do not show deleted invoices --- app/Http/Livewire/InvoicesTable.php | 3 ++- .../portal/ninja2020/gateways/stripe/credit_card/pay.blade.php | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/InvoicesTable.php b/app/Http/Livewire/InvoicesTable.php index ac09810afe4a..783c832df58a 100644 --- a/app/Http/Livewire/InvoicesTable.php +++ b/app/Http/Livewire/InvoicesTable.php @@ -38,7 +38,8 @@ class InvoicesTable extends Component $local_status = []; $query = Invoice::query() - ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc'); + ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') + ->where('is_deleted', false); if (in_array('paid', $this->status)) { $local_status[] = Invoice::STATUS_PAID; diff --git a/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php index bd8eb2b0afdb..a815df0c6201 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php @@ -5,7 +5,6 @@ - @endsection