1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Attach task documents to invoice emails

This commit is contained in:
David Bomba 2022-05-14 06:34:53 +10:00
parent d843b43034
commit 202ab0357c

View File

@ -182,10 +182,9 @@ class InvoiceEmailEngine extends BaseEmailEngine
$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))
->where('invoice_documents', 1)
->cursor()
->each(function ($task){