diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index 56a09555d900..ba7da5f28670 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -717,7 +717,8 @@ class SubscriptionService */ public function convertInvoiceToRecurring($client_id) :RecurringInvoice { - + MultiDB::setDb($this->subscription->company->db); + $client = Client::withTrashed()->find($client_id); $subscription_repo = new SubscriptionRepository();