deprecation fixes

This commit is contained in:
David Bomba 2025-11-24 07:20:33 +11:00
parent 24ba1f3620
commit 00f1aa1da7
3 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ class SearchController extends Controller
$results = $elastic->search($params);
nlog($results['hits']);
// nlog($results['hits']);
$this->mapResults($results['hits']['hits'] ?? []);

View File

@ -278,8 +278,8 @@ class Invoice extends BaseModel
'custom_value3' => (string)$this->custom_value3,
'custom_value4' => (string)$this->custom_value4,
'company_key' => $this->company->company_key,
'po_number' => (string)$this->po_number,
'line_items' => (array)$this->line_items,
'po_number' => (string) $this->po_number,
'line_items' => (array) $this->line_items,
];
}

View File

@ -476,7 +476,7 @@ class Payment extends BaseModel
if (Ninja::isHosted()) {
$domain = $this->company->domain();
} else {
$domain = strlen($this->company->portal_domain) > 5 ? $this->company->portal_domain : config('ninja.app_url');
$domain = strlen($this->company->portal_domain ?? '') > 5 ? $this->company->portal_domain : config('ninja.app_url');
}
return $domain.'/client/payment/'.$this->client->contacts()->first()->contact_key.'/'.$this->hashed_id.'?next=/client/payments/'.$this->hashed_id;