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()
|
||||
->withTrashed()
|
||||
->whereIn('id', $this->transformKeys($this->ids))
|
||||
->where('company_id', $this->company->id)
|
||||
->get();
|
||||
->where('company_id', $this->company->id);
|
||||
|
||||
if($this->entity == Invoice::class)
|
||||
$resource->with('payments');
|
||||
|
||||
$resource->get();
|
||||
|
||||
if(count($resource) <= 1)
|
||||
$data[$key] = [$resource];
|
||||
|
Loading…
Reference in New Issue
Block a user