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:
parent
d843b43034
commit
202ab0357c
@ -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){
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user