mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Remove
This commit is contained in:
parent
e631a6a7ba
commit
5f8d8517af
@ -401,7 +401,7 @@ class InvoiceController extends BaseController
|
||||
if ($invoice->is_recurring) {
|
||||
$response = $this->emailRecurringInvoice($invoice);
|
||||
} else {
|
||||
$this->dispatch(new SendInvoiceEmail($invoice, $reminder, $pdfUpload, $template));
|
||||
$this->dispatch(new SendInvoiceEmail($invoice, $reminder, $template));
|
||||
$response = true;
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,6 @@ class SendInvoiceEmail extends Job implements ShouldQueue
|
||||
*/
|
||||
protected $reminder;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $pdfString;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
@ -44,11 +39,10 @@ class SendInvoiceEmail extends Job implements ShouldQueue
|
||||
* @param bool $reminder
|
||||
* @param mixed $pdfString
|
||||
*/
|
||||
public function __construct(Invoice $invoice, $reminder = false, $pdfString = false, $template = false)
|
||||
public function __construct(Invoice $invoice, $reminder = false, $template = false)
|
||||
{
|
||||
$this->invoice = $invoice;
|
||||
$this->reminder = $reminder;
|
||||
$this->pdfString = $pdfString;
|
||||
$this->template = $template;
|
||||
}
|
||||
|
||||
@ -59,7 +53,7 @@ class SendInvoiceEmail extends Job implements ShouldQueue
|
||||
*/
|
||||
public function handle(ContactMailer $mailer)
|
||||
{
|
||||
$mailer->sendInvoice($this->invoice, $this->reminder, $this->pdfString, $this->template);
|
||||
$mailer->sendInvoice($this->invoice, $this->reminder, $this->template);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -36,7 +36,7 @@ class ContactMailer extends Mailer
|
||||
*
|
||||
* @return bool|null|string
|
||||
*/
|
||||
public function sendInvoice(Invoice $invoice, $reminder = false, $pdfString = false, $template = false)
|
||||
public function sendInvoice(Invoice $invoice, $reminder = false, $template = false)
|
||||
{
|
||||
if ($invoice->is_recurring) {
|
||||
return false;
|
||||
@ -61,8 +61,9 @@ class ContactMailer extends Mailer
|
||||
$emailSubject = !empty($template['subject']) ? $template['subject'] : $account->getEmailSubject($reminder ?: $entityType);
|
||||
|
||||
$sent = false;
|
||||
$pdfString = false;
|
||||
|
||||
if ($account->attachPDF() && ! $pdfString) {
|
||||
if ($account->attachPDF()) {
|
||||
$pdfString = $invoice->getPDFString();
|
||||
}
|
||||
|
||||
|
@ -1308,25 +1308,6 @@
|
||||
$('#emailModal div.modal-footer button').attr('disabled', true);
|
||||
model.invoice().is_public(true);
|
||||
submitAction('email');
|
||||
|
||||
/*
|
||||
var accountLanguageId = parseInt({{ $account->language_id ?: '0' }});
|
||||
var clientLanguageId = parseInt(model.invoice().client().language_id()) || 0;
|
||||
var attachPDF = {{ $account->attachPDF() ? 'true' : 'false' }};
|
||||
|
||||
// if they aren't attaching the pdf no need to generate it
|
||||
if ( ! attachPDF) {
|
||||
submitAction('email');
|
||||
// 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');
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
function onSaveDraftClick() {
|
||||
|
Loading…
Reference in New Issue
Block a user