mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fixes
This commit is contained in:
parent
d90223cb3e
commit
f872524419
@ -23,6 +23,7 @@ class InvoiceReport extends AbstractReport
|
||||
'due_date' => ['columnSelector-false'],
|
||||
'po_number' => ['columnSelector-false'],
|
||||
'private_notes' => ['columnSelector-false'],
|
||||
'vat_number' => ['columnSelector-false'],
|
||||
'user' => ['columnSelector-false'],
|
||||
];
|
||||
|
||||
@ -103,6 +104,7 @@ class InvoiceReport extends AbstractReport
|
||||
$invoice->present()->due_date,
|
||||
$invoice->po_number,
|
||||
$invoice->private_notes,
|
||||
$client->vat_number,
|
||||
$invoice->user->getDisplayName(),
|
||||
];
|
||||
|
||||
|
@ -68,7 +68,7 @@
|
||||
|
||||
@if ($client->trashed())
|
||||
@can('edit', $client)
|
||||
@if (auth()->user()->is_admin)
|
||||
@if (auth()->user()->is_admin && $client->is_deleted)
|
||||
{!! Button::danger(trans('texts.purge_client'))
|
||||
->appendIcon(Icon::create('warning-sign'))
|
||||
->withAttributes(['onclick' => 'onPurgeClick()']) !!}
|
||||
|
Loading…
x
Reference in New Issue
Block a user