From e4c2b44da5d6c1430c833b08c269ede4af552db5 Mon Sep 17 00:00:00 2001 From: harshjagad20 Date: Thu, 20 May 2021 12:08:48 +0530 Subject: [PATCH] Clone Invoice Template issue --- app/Http/Controllers/V1/Invoice/CloneInvoiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/V1/Invoice/CloneInvoiceController.php b/app/Http/Controllers/V1/Invoice/CloneInvoiceController.php index 079dc195..d64d3848 100644 --- a/app/Http/Controllers/V1/Invoice/CloneInvoiceController.php +++ b/app/Http/Controllers/V1/Invoice/CloneInvoiceController.php @@ -32,7 +32,7 @@ class CloneInvoiceController extends Controller 'reference_number' => $invoice->reference_number, 'user_id' => $invoice->user_id, 'company_id' => $request->header('company'), - 'invoice_template_id' => 1, + 'invoice_template_id' => $invoice->invoice_template_id, 'status' => Invoice::STATUS_DRAFT, 'paid_status' => Invoice::STATUS_UNPAID, 'sub_total' => $invoice->sub_total,