mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Attach task documents to invoice emails
This commit is contained in:
parent
d843b43034
commit
202ab0357c
@ -182,10 +182,9 @@ class InvoiceEmailEngine extends BaseEmailEngine
|
|||||||
$task_ids[] = $item->task_id;
|
$task_ids[] = $item->task_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(count($task_ids) > 0){
|
if(count($task_ids) > 0 && $this->invoice->company->invoice_task_documents){
|
||||||
|
|
||||||
$tasks = Task::whereIn('id', $this->transformKeys($task_ids))
|
$tasks = Task::whereIn('id', $this->transformKeys($task_ids))
|
||||||
->where('invoice_documents', 1)
|
|
||||||
->cursor()
|
->cursor()
|
||||||
->each(function ($task){
|
->each(function ($task){
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user