Merge pull request #5780 from turbo124/v5-develop

Change logic for Set Reminder
This commit is contained in:
David Bomba 2021-05-22 12:16:57 +10:00 committed by GitHub
commit 3118cbf018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
5.1.64 5.1.65

View File

@ -39,8 +39,6 @@ class MarkSent extends AbstractService
$this->invoice->markInvitationsSent(); $this->invoice->markInvitationsSent();
$this->invoice->setReminder();
$this->invoice $this->invoice
->service() ->service()
->setStatus(Invoice::STATUS_SENT) ->setStatus(Invoice::STATUS_SENT)
@ -50,6 +48,8 @@ class MarkSent extends AbstractService
->deletePdf() ->deletePdf()
->save(); ->save();
$this->invoice->setReminder();
$this->client->service()->updateBalance($this->invoice->balance)->save(); $this->client->service()->updateBalance($this->invoice->balance)->save();
$this->invoice->ledger()->updateInvoiceBalance($this->invoice->balance, "Invoice {$this->invoice->number} marked as sent."); $this->invoice->ledger()->updateInvoiceBalance($this->invoice->balance, "Invoice {$this->invoice->number} marked as sent.");

View File

@ -14,8 +14,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true), 'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => '5.1.64', 'app_version' => '5.1.65',
'app_tag' => '5.1.64-release', 'app_tag' => '5.1.65-release',
'minimum_client_version' => '5.0.16', 'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1', 'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', ''), 'api_secret' => env('API_SECRET', ''),