From b08138e9e0defde9dc5421421e2bd265f5ba3fe1 Mon Sep 17 00:00:00 2001 From: jayvirsinh_gohil Date: Mon, 11 May 2020 18:34:20 +0530 Subject: [PATCH] refactor estimate to invoice endpoint --- app/Http/Controllers/EstimatesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/EstimatesController.php b/app/Http/Controllers/EstimatesController.php index 86b6015e..73bf6a88 100644 --- a/app/Http/Controllers/EstimatesController.php +++ b/app/Http/Controllers/EstimatesController.php @@ -385,7 +385,7 @@ class EstimatesController extends Controller public function estimateToInvoice(Request $request, $id) { $estimate = Estimate::with(['items', 'items.taxes', 'user', 'estimateTemplate', 'taxes'])->find($id); - $invoice_date = Carbon::parse($estimate->estimate_date); + $invoice_date = Carbon::now(); $invoice_prefix = CompanySetting::getSetting( 'invoice_prefix', $request->header('company')