mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #8147 from turbo124/v5-develop
Fixes for touching reminders inappropriately
This commit is contained in:
commit
9bb4cb0e5d
@ -54,8 +54,9 @@ class BulkInvoiceJob implements ShouldQueue
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{ //only the reminder should mark the reminder sent field
|
||||||
$this->invoice->service()->touchReminder($this->reminder_template)->markSent()->save();
|
// $this->invoice->service()->touchReminder($this->reminder_template)->markSent()->save();
|
||||||
|
$this->invoice->service()->markSent()->save();
|
||||||
|
|
||||||
$this->invoice->invitations->load('contact.client.country', 'invoice.client.country', 'invoice.company')->each(function ($invitation) {
|
$this->invoice->invitations->load('contact.client.country', 'invoice.client.country', 'invoice.company')->each(function ($invitation) {
|
||||||
EmailEntity::dispatch($invitation, $this->invoice->company, $this->reminder_template)->delay(now()->addSeconds(5));
|
EmailEntity::dispatch($invitation, $this->invoice->company, $this->reminder_template)->delay(now()->addSeconds(5));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user