mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 12:42:36 +01:00
Changes for the mobile app
This commit is contained in:
parent
baaaa12a9c
commit
87ad60b71f
@ -365,10 +365,13 @@ class InvoiceApiController extends BaseAPIController
|
||||
$invoice = $recurringInvoice;
|
||||
}
|
||||
|
||||
$reminder = request()->reminder;
|
||||
$template = request()->template;
|
||||
|
||||
if (config('queue.default') !== 'sync') {
|
||||
$this->dispatch(new SendInvoiceEmail($invoice, auth()->user()->id));
|
||||
$this->dispatch(new SendInvoiceEmail($invoice, auth()->user()->id, $reminder, $template));
|
||||
} else {
|
||||
$result = app('App\Ninja\Mailers\ContactMailer')->sendInvoice($invoice);
|
||||
$result = app('App\Ninja\Mailers\ContactMailer')->sendInvoice($invoice, $reminder, $template);
|
||||
if ($result !== true) {
|
||||
return $this->errorResponse($result, 500);
|
||||
}
|
||||
|
@ -187,18 +187,19 @@ class UserAccountTransformer extends EntityTransformer
|
||||
'custom_fields' => $account->custom_fields ?: '',
|
||||
'invoice_fields' => $account->invoice_fields ?: '',
|
||||
'custom_messages' => $account->custom_messages,
|
||||
'email_subject_invoice' => $account->account_email_settings->email_subject_invoice,
|
||||
'email_subject_quote' => $account->account_email_settings->email_subject_quote,
|
||||
'email_subject_payment' => $account->account_email_settings->email_subject_payment,
|
||||
'email_template_invoice' => $account->account_email_settings->email_template_invoice,
|
||||
'email_template_quote' => $account->account_email_settings->email_template_quote,
|
||||
'email_template_payment' => $account->account_email_settings->email_template_payment,
|
||||
'email_subject_reminder1' => $account->account_email_settings->email_subject_reminder1,
|
||||
'email_subject_reminder2' => $account->account_email_settings->email_subject_reminder2,
|
||||
'email_subject_reminder3' => $account->account_email_settings->email_subject_reminder3,
|
||||
'email_template_reminder1' => $account->account_email_settings->email_template_reminder1,
|
||||
'email_template_reminder2' => $account->account_email_settings->email_template_reminder2,
|
||||
'email_template_reminder3' => $account->account_email_settings->email_template_reminder3,
|
||||
'email_footer' => $account->getEmailFooter(),
|
||||
'email_subject_invoice' => $account->getEmailSubject(ENTITY_INVOICE),
|
||||
'email_subject_quote' => $account->getEmailSubject(ENTITY_QUOTE),
|
||||
'email_subject_payment' => $account->getEmailSubject(ENTITY_PAYMENT),
|
||||
'email_template_invoice' => $account->getEmailTemplate(ENTITY_INVOICE),
|
||||
'email_template_quote' => $account->getEmailTemplate(ENTITY_QUOTE),
|
||||
'email_template_payment' => $account->getEmailTemplate(ENTITY_PAYMENT),
|
||||
'email_subject_reminder1' => $account->getEmailSubject('reminder1'),
|
||||
'email_subject_reminder2' => $account->getEmailSubject('reminder2'),
|
||||
'email_subject_reminder3' => $account->getEmailSubject('reminder3'),
|
||||
'email_template_reminder1' => $account->getEmailTemplate('reminder1'),
|
||||
'email_template_reminder2' => $account->getEmailTemplate('reminder2'),
|
||||
'email_template_reminder3' => $account->getEmailTemplate('reminder3'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user