diff --git a/VERSION.txt b/VERSION.txt index 2abae2150b94..69dd5a4045a8 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/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."); diff --git a/config/ninja.php b/config/ninja.php index af498f8a214a..68a57bab86b5 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', ''),