1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for portal - hide deleted invoice from payment view

This commit is contained in:
David Bomba 2023-05-03 09:59:53 +10:00
parent 02dc297efb
commit ba68682ced
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class InvoiceController extends Controller
$invitation->markViewed();
event(new InvitationWasViewed($invoice, $invitation, $invoice->company, Ninja::eventVars()));
event(new InvoiceWasViewed($invitation, $invitation->company, Ninja::eventVars()));
event(new InvoiceWasViewed($invitation, $invoice->company, Ninja::eventVars()));
}
$data = [

View File

@ -123,7 +123,7 @@
<div>
<dl>
@foreach($payment->invoices as $invoice)
@if(!$invoice->is_proforma)
@if(!$invoice->is_proforma && !$invoice->is_deleted)
<div class="px-4 py-5 bg-white sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium leading-5 text-gray-500">
{{ ctrans('texts.invoice_number') }}