From a55dd2ec40369e93b4eb462c437d7bc43bf778d8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 5 Jul 2022 09:55:05 +1000 Subject: [PATCH] Purchase Orders --- app/Jobs/RecurringInvoice/SendRecurring.php | 1 - app/Models/ClientContact.php | 1 - app/Services/Invoice/ApplyNumber.php | 2 -- 3 files changed, 4 deletions(-) diff --git a/app/Jobs/RecurringInvoice/SendRecurring.php b/app/Jobs/RecurringInvoice/SendRecurring.php index b3bf0a53ddb3..d019e23790f4 100644 --- a/app/Jobs/RecurringInvoice/SendRecurring.php +++ b/app/Jobs/RecurringInvoice/SendRecurring.php @@ -85,7 +85,6 @@ class SendRecurring implements ShouldQueue $invoice = $invoice->service() ->markSent() ->applyNumber() - //->createInvitations() //need to only link invitations to those in the recurring invoice ->fillDefaults() ->adjustInventory() ->save(); diff --git a/app/Models/ClientContact.php b/app/Models/ClientContact.php index e71bf14812be..f6f256798488 100644 --- a/app/Models/ClientContact.php +++ b/app/Models/ClientContact.php @@ -210,7 +210,6 @@ class ClientContact extends Authenticatable implements HasLocalePreference NinjaMailerJob::dispatch($nmo); - //$this->notify(new ClientContactResetPassword($token)); } public function preferredLocale() diff --git a/app/Services/Invoice/ApplyNumber.php b/app/Services/Invoice/ApplyNumber.php index d43f3b71bb83..325991ab67ec 100644 --- a/app/Services/Invoice/ApplyNumber.php +++ b/app/Services/Invoice/ApplyNumber.php @@ -43,12 +43,10 @@ class ApplyNumber extends AbstractService switch ($this->client->getSetting('counter_number_applied')) { case 'when_saved': $this->trySaving(); - // $this->invoice->number = $this->getNextInvoiceNumber($this->client, $this->invoice, $this->invoice->recurring_id); break; case 'when_sent': if ($this->invoice->status_id == Invoice::STATUS_SENT) { $this->trySaving(); - // $this->invoice->number = $this->getNextInvoiceNumber($this->client, $this->invoice, $this->invoice->recurring_id); } break;