Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jul 8, 2018
1 parent d90223c commit f872524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/Ninja/Reports/InvoiceReport.php
Expand Up @@ -23,6 +23,7 @@ public function getColumns()
'due_date' => ['columnSelector-false'],
'po_number' => ['columnSelector-false'],
'private_notes' => ['columnSelector-false'],
'vat_number' => ['columnSelector-false'],
'user' => ['columnSelector-false'],
];

Expand Down Expand Up @@ -103,6 +104,7 @@ public function run()
$invoice->present()->due_date,
$invoice->po_number,
$invoice->private_notes,
$client->vat_number,
$invoice->user->getDisplayName(),
];

Expand Down
2 changes: 1 addition & 1 deletion resources/views/clients/show.blade.php
Expand Up @@ -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()']) !!}
Expand Down

0 comments on commit f872524

Please sign in to comment.