1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Minor fixes for entity view documents

This commit is contained in:
David Bomba 2022-03-13 17:18:45 +11:00
parent 7097c7bdd5
commit ebfee1b573
2 changed files with 6 additions and 2 deletions

View File

@ -27,6 +27,10 @@ class ImportStripeCustomers implements ShouldQueue
public $company;
private $stripe_keys = ['d14dd26a47cecc30fdd65700bfb67b34', 'd14dd26a37cecc30fdd65700bfb55b23'];
public $tries = 1;
/**
* Create a new job instance.
*

View File

@ -1,4 +1,4 @@
@if ($entity->documents->count() > 0 || $entity->company->documents->count() > 0 || ($entity->expense->exists() && $entity->expense->invoice_documents))
@if ($entity->documents->count() > 0 || $entity->company->documents->count() > 0 || ($entity->expense && $entity->expense->invoice_documents))
<div class="bg-white shadow sm:rounded-lg my-4">
<div class="px-4 py-5 sm:p-6">
<div class="sm:flex sm:items-start sm:justify-between">
@ -42,7 +42,7 @@
</div>
@endforeach
@if($entity->expense->exists() && $entity->expense->invoice_documents)
@if($entity->expense && $entity->expense->invoice_documents)
@foreach ($entity->expense->documents as $document)
<div class="inline-flex items-center space-x-1">
<a href="{{ route('client.documents.show', $document->hashed_id) }}" target="_blank"