From 71c3865bb58538aca93d4afb42ef965b86100ff6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 16 Sep 2020 09:29:23 +1000 Subject: [PATCH] Fix bug with recurring invoice factory not setting a client --- app/Factory/RecurringInvoiceToInvoiceFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Factory/RecurringInvoiceToInvoiceFactory.php b/app/Factory/RecurringInvoiceToInvoiceFactory.php index 54f5c28852..572f2727d3 100644 --- a/app/Factory/RecurringInvoiceToInvoiceFactory.php +++ b/app/Factory/RecurringInvoiceToInvoiceFactory.php @@ -47,7 +47,8 @@ class RecurringInvoiceToInvoiceFactory $invoice->user_id = $recurring_invoice->user_id; $invoice->company_id = $recurring_invoice->company_id; $invoice->recurring_id = $recurring_invoice->id; - + $invoice->client_id = $client->id; + return $invoice; } }