Updates for quote reminders

This commit is contained in:
David Bomba 2024-11-23 17:22:47 +11:00
parent 6c28f9c9fe
commit eb04382757
3 changed files with 38 additions and 6 deletions

View File

@ -31,10 +31,10 @@ class SendEmail
public function run()
{
$this->reminder_template = $this->reminder_template ? "email_template_{$this->reminder_template}" : "email_template_".$this->quote->calculateTemplate('quote');
// if (! $this->reminder_template) {
// $this->reminder_template = $this->quote->calculateTemplate('quote');
// }
if(in_array($this->reminder_template, ["email_quote_template_reminder1","reminder1"]));
$this->reminder_template = "email_quote_template_reminder1";
else
$this->reminder_template = "email_template_".$this->quote->calculateTemplate('quote');
$this->quote->service()->markSent()->save();

View File

@ -3147,7 +3147,23 @@ paths:
template:
description: "The template required"
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
responses:
200:

View File

@ -3064,7 +3064,23 @@ paths:
template:
description: "The template required"
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
responses:
200: