From a226d83657815d5509428b37767dd750914dcb1d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 5 Oct 2021 09:03:21 +1100 Subject: [PATCH] Quote services --- app/Factory/CloneQuoteToInvoiceFactory.php | 6 +++--- app/Services/Quote/ConvertQuote.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Factory/CloneQuoteToInvoiceFactory.php b/app/Factory/CloneQuoteToInvoiceFactory.php index b04b8104253d..0c17ed9de216 100644 --- a/app/Factory/CloneQuoteToInvoiceFactory.php +++ b/app/Factory/CloneQuoteToInvoiceFactory.php @@ -28,9 +28,9 @@ class CloneQuoteToInvoiceFactory unset($quote_array['invoice_id']); unset($quote_array['id']); unset($quote_array['invitations']); - unset($quote_array['terms']); - // unset($quote_array['public_notes']); - unset($quote_array['footer']); + //unset($quote_array['terms']); + //unset($quote_array['public_notes']); + //unset($quote_array['footer']); unset($quote_array['design_id']); foreach ($quote_array as $key => $value) { diff --git a/app/Services/Quote/ConvertQuote.php b/app/Services/Quote/ConvertQuote.php index 97f389b48484..fdccf632ed85 100644 --- a/app/Services/Quote/ConvertQuote.php +++ b/app/Services/Quote/ConvertQuote.php @@ -41,6 +41,7 @@ class ConvertQuote $invoice->design_id = $this->decodePrimaryKey($this->client->getSetting('invoice_design_id')); $invoice = $this->invoice_repo->save([], $invoice); + nlog($invoice->toArray()); $invoice->fresh(); $invoice->service()