mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Fixes for missing payments
This commit is contained in:
parent
9424950dbb
commit
715e5022f0
@ -84,8 +84,12 @@ class TemplateAction implements ShouldQueue
|
|||||||
$resource = $entity->query()
|
$resource = $entity->query()
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
->whereIn('id', $this->transformKeys($this->ids))
|
->whereIn('id', $this->transformKeys($this->ids))
|
||||||
->where('company_id', $this->company->id)
|
->where('company_id', $this->company->id);
|
||||||
->get();
|
|
||||||
|
if($this->entity == Invoice::class)
|
||||||
|
$resource->with('payments');
|
||||||
|
|
||||||
|
$resource->get();
|
||||||
|
|
||||||
if(count($resource) <= 1)
|
if(count($resource) <= 1)
|
||||||
$data[$key] = [$resource];
|
$data[$key] = [$resource];
|
||||||
|
Loading…
Reference in New Issue
Block a user