diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 51cee3a4a7ce..e77ce4b56add 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -1305,6 +1305,9 @@ // if the client's language is different then we can't use the browser version of the PDF } else if (clientLanguageId && clientLanguageId != accountLanguageId) { submitAction('email'); + // if queues are enabled we need to use PhantomJS + } else if ({{ config('queue.default') != 'sync' ? 'true' : 'false' }}) { + submitAction('email'); } else { preparePdfData('email'); }