From 8d8fec7d2aa26d15fc6545a4bfb90db300b2c8f0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 21 May 2021 22:12:26 +1000 Subject: [PATCH 1/2] v5.1.65 --- VERSION.txt | 2 +- config/ninja.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index 2abae2150b..69dd5a4045 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.1.64 \ No newline at end of file +5.1.65 \ No newline at end of file diff --git a/config/ninja.php b/config/ninja.php index af498f8a21..68a57bab86 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,8 +14,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'), - 'app_version' => '5.1.64', - 'app_tag' => '5.1.64-release', + 'app_version' => '5.1.65', + 'app_tag' => '5.1.65-release', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', ''), From 8970f6415beff15ecd55f9a907b0fd651ad4c878 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 21 May 2021 23:29:59 +1000 Subject: [PATCH 2/2] 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 f212666fd2..11e36d5905 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.");