From 8970f6415beff15ecd55f9a907b0fd651ad4c878 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 21 May 2021 23:29:59 +1000 Subject: [PATCH] Fixes for reminder scheduling --- app/Services/Invoice/MarkSent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Invoice/MarkSent.php b/app/Services/Invoice/MarkSent.php index f212666fd27a..11e36d590503 100644 --- a/app/Services/Invoice/MarkSent.php +++ b/app/Services/Invoice/MarkSent.php @@ -39,8 +39,6 @@ class MarkSent extends AbstractService $this->invoice->markInvitationsSent(); - $this->invoice->setReminder(); - $this->invoice ->service() ->setStatus(Invoice::STATUS_SENT) @@ -50,6 +48,8 @@ class MarkSent extends AbstractService ->deletePdf() ->save(); + $this->invoice->setReminder(); + $this->client->service()->updateBalance($this->invoice->balance)->save(); $this->invoice->ledger()->updateInvoiceBalance($this->invoice->balance, "Invoice {$this->invoice->number} marked as sent.");