From 933af36122549cdb932dc1bef5067a3810b63701 Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Tue, 11 Nov 2025 11:14:48 +0530 Subject: [PATCH] GWM --- app/Controllers/PolicyController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/PolicyController.php b/app/Controllers/PolicyController.php index 0af6f54..da21a59 100644 --- a/app/Controllers/PolicyController.php +++ b/app/Controllers/PolicyController.php @@ -119,7 +119,7 @@ class PolicyController extends ResourceController 'rto_city_code' => $data['rto_city_code'] ?? null, 'weight' => $data['weight'] ?? null, 'fuel_type' => $data['fuel_type'] ?? null, - 'date_of_registration' => format_date_for_database($data['date_of_registration']), + 'date_of_registration' => $data['date_of_registration'] ? format_date_for_database($data['date_of_registration']) : null, 'year_of_manufacture' => $data['year_of_manufacture'] ?? null, 'engine_no' => $data['engine_no'] ?? null, 'chassis_no' => $data['chassis_no'] ?? null, @@ -198,7 +198,7 @@ class PolicyController extends ResourceController 'rto_city_code' => $data['rto_city_code'] ?? null, 'weight' => $data['weight'] ?? null, 'fuel_type' => $data['fuel_type'] ?? null, - 'date_of_registration' => format_date_for_database($data['date_of_registration']), + 'date_of_registration' => $data['date_of_registration'] ? format_date_for_database($data['date_of_registration']) : null, 'year_of_manufacture' => $data['year_of_manufacture'] ?? null, 'engine_no' => $data['engine_no'] ?? null, 'chassis_no' => $data['chassis_no'] ?? null,