mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
minor fixes
This commit is contained in:
parent
a1e9de5807
commit
0f10c4b8dd
@ -940,7 +940,7 @@ class SubscriptionService
|
|||||||
'subscription' => $this->subscription->hashed_id,
|
'subscription' => $this->subscription->hashed_id,
|
||||||
'recurring_invoice' => $recurring_invoice_hashed_id,
|
'recurring_invoice' => $recurring_invoice_hashed_id,
|
||||||
'client' => $invoice->client->hashed_id,
|
'client' => $invoice->client->hashed_id,
|
||||||
'contact' => $invoice->client->primary_contact()->first()->hashed_id,
|
'contact' => $invoice->client->primary_contact()->first() ? $invoice->client->contacts->first() : false,
|
||||||
'invoice' => $invoice->hashed_id,
|
'invoice' => $invoice->hashed_id,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -48,18 +48,28 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="px-4 py-5 bg-white sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
<div class="px-4 py-5 bg-white sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
||||||
|
@if($invoice->po_number)
|
||||||
|
<dt class="text-sm font-medium leading-5 text-gray-500">
|
||||||
|
{{ ctrans('texts.po_number') }}
|
||||||
|
</dt>
|
||||||
|
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
|
{{ $invoice->po_number }}
|
||||||
|
</dd>
|
||||||
|
@elseif($invoice->public_notes)
|
||||||
|
<dt class="text-sm font-medium leading-5 text-gray-500">
|
||||||
|
{{ ctrans('texts.public_notes') }}
|
||||||
|
</dt>
|
||||||
|
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
|
{{ $invoice->public_notes }}
|
||||||
|
</dd>
|
||||||
|
@else
|
||||||
<dt class="text-sm font-medium leading-5 text-gray-500">
|
<dt class="text-sm font-medium leading-5 text-gray-500">
|
||||||
{{ ctrans('texts.invoice_date') }}
|
{{ ctrans('texts.invoice_date') }}
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
@if($invoice->po_number)
|
{{ $invoice->date }}
|
||||||
{{ $invoice->po_number }}
|
|
||||||
@elseif($invoice->public_notes)
|
|
||||||
{{ $invoice->public_notes }}
|
|
||||||
@else
|
|
||||||
{{ $invoice->date}}
|
|
||||||
@endif
|
|
||||||
</dd>
|
</dd>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if(!empty($invoice->due_date) && !is_null($invoice->due_date))
|
@if(!empty($invoice->due_date) && !is_null($invoice->due_date))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user