Updates for quote reminders
This commit is contained in:
parent
6c28f9c9fe
commit
eb04382757
|
|
@ -31,10 +31,10 @@ class SendEmail
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->reminder_template = $this->reminder_template ? "email_template_{$this->reminder_template}" : "email_template_".$this->quote->calculateTemplate('quote');
|
if(in_array($this->reminder_template, ["email_quote_template_reminder1","reminder1"]));
|
||||||
// if (! $this->reminder_template) {
|
$this->reminder_template = "email_quote_template_reminder1";
|
||||||
// $this->reminder_template = $this->quote->calculateTemplate('quote');
|
else
|
||||||
// }
|
$this->reminder_template = "email_template_".$this->quote->calculateTemplate('quote');
|
||||||
|
|
||||||
$this->quote->service()->markSent()->save();
|
$this->quote->service()->markSent()->save();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3147,7 +3147,23 @@ paths:
|
||||||
template:
|
template:
|
||||||
description: "The template required"
|
description: "The template required"
|
||||||
type: string
|
type: string
|
||||||
example: invoice,quote,credit,purchase_order,payment,payment_partial,reminder1,reminder2,reminder3,reminder_endless
|
enum:
|
||||||
|
- invoice
|
||||||
|
- quote
|
||||||
|
- credit
|
||||||
|
- payment
|
||||||
|
- payment_partial
|
||||||
|
- statement
|
||||||
|
- reminder1
|
||||||
|
- reminder2
|
||||||
|
- reminder3
|
||||||
|
- reminder_endless
|
||||||
|
- custom1
|
||||||
|
- custom2
|
||||||
|
- custom3
|
||||||
|
- purchase_order
|
||||||
|
- email_quote_template_reminder1
|
||||||
|
example: invoice
|
||||||
type: object
|
type: object
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
|
|
||||||
|
|
@ -3064,7 +3064,23 @@ paths:
|
||||||
template:
|
template:
|
||||||
description: "The template required"
|
description: "The template required"
|
||||||
type: string
|
type: string
|
||||||
example: invoice,quote,credit,purchase_order,payment,payment_partial,reminder1,reminder2,reminder3,reminder_endless
|
enum:
|
||||||
|
- invoice
|
||||||
|
- quote
|
||||||
|
- credit
|
||||||
|
- payment
|
||||||
|
- payment_partial
|
||||||
|
- statement
|
||||||
|
- reminder1
|
||||||
|
- reminder2
|
||||||
|
- reminder3
|
||||||
|
- reminder_endless
|
||||||
|
- custom1
|
||||||
|
- custom2
|
||||||
|
- custom3
|
||||||
|
- purchase_order
|
||||||
|
- email_quote_template_reminder1
|
||||||
|
example: invoice
|
||||||
type: object
|
type: object
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue