mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Code cleanup
This commit is contained in:
parent
84b54d344c
commit
2757f3ef81
@ -96,6 +96,7 @@ class TemplateAction implements ShouldQueue
|
|||||||
Project::class => $resource->with('client'),
|
Project::class => $resource->with('client'),
|
||||||
Expense::class => $resource->with('client'),
|
Expense::class => $resource->with('client'),
|
||||||
Payment::class => $resource->with('invoices', 'client'),
|
Payment::class => $resource->with('invoices', 'client'),
|
||||||
|
Client::class => $resource,
|
||||||
};
|
};
|
||||||
|
|
||||||
$result = $resource->withTrashed()
|
$result = $resource->withTrashed()
|
||||||
@ -103,7 +104,7 @@ class TemplateAction implements ShouldQueue
|
|||||||
->where('company_id', $this->company->id)
|
->where('company_id', $this->company->id)
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
nlog($result->toArray());
|
// nlog($result->toArray());
|
||||||
|
|
||||||
if($result->count() <= 1) {
|
if($result->count() <= 1) {
|
||||||
$data[$key] = collect($result);
|
$data[$key] = collect($result);
|
||||||
@ -111,7 +112,6 @@ class TemplateAction implements ShouldQueue
|
|||||||
$data[$key] = $result;
|
$data[$key] = $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$ts = $template_service
|
$ts = $template_service
|
||||||
->setCompany($this->company)
|
->setCompany($this->company)
|
||||||
->build($data);
|
->build($data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user