Merge branch 'main' of bitbucket.org:jubilian/nhance_partner_be

This commit is contained in:
Gowtham M 2026-01-06 12:31:28 +05:30
commit fb9b4c8e61
2 changed files with 13 additions and 8 deletions

View File

@ -502,6 +502,11 @@ class EnquiryController extends ResourceController
$updateData['assigned_to'] = $data['assigned_to'];
$updateData['insurer_id'] = $data['insurer_id'];
$updateData['broker_id'] = $data['broker_id'];
if (isset($data['from_dashboard_enquiry_status']) && $data['from_dashboard_enquiry_status'] === 'Assigned') {
$updateData['enquiry_status'] = 'Assigned';
}
if($enquiry['assigned_to'] != 0 && $enquiry['enquiry_status'] == 'To be assigned'){
$updateData['enquiry_status'] = 'Assigned';

View File

@ -146,7 +146,7 @@ class MasterController extends ResourceController
// Duplicate check (case-insensitive)
$exists = $this->VehicleTypeMasterModel
->where('LOWER(vehicle_type)', strtolower($input['vehicle_type']))
->where('is_active', 1)
// ->where('is_active', 1)
->first();
if ($exists) {
@ -182,7 +182,7 @@ class MasterController extends ResourceController
$checkDuplicate = $this->VehicleTypeMasterModel
->where('LOWER(vehicle_type)', strtolower($input['vehicle_type']))
->where('id !=', $id)
->where('is_active', 1)
// ->where('is_active', 1)
->first();
if ($checkDuplicate) {
@ -255,7 +255,7 @@ class MasterController extends ResourceController
// Duplicate check (case-insensitive)
$exists = $this->PartnerBrokerModel
->where('LOWER(name)', strtolower($input['name']))
->where('is_active', 1)
// ->where('is_active', 1)
->first();
if ($exists) {
@ -292,7 +292,7 @@ class MasterController extends ResourceController
$checkDuplicate = $this->PartnerBrokerModel
->where('LOWER(name)', strtolower($input['name']))
->where('id !=', $id)
->where('is_active', 1)
// ->where('is_active', 1)
->first();
if ($checkDuplicate) {
@ -366,7 +366,7 @@ class MasterController extends ResourceController
// Duplicate check (case-insensitive)
$exists = $this->PaymentModeModel
->where('LOWER(value)', strtolower($input['value']))
->where('is_active', 1)
// ->where('is_active', 1)
->first();
if ($exists) {
@ -402,7 +402,7 @@ class MasterController extends ResourceController
$checkDuplicate = $this->PaymentModeModel
->where('LOWER(value)', strtolower($input['value']))
->where('id !=', $id)
->where('is_active', 1)
// ->where('is_active', 1)
->first();
if ($checkDuplicate) {
@ -492,7 +492,7 @@ class MasterController extends ResourceController
// Duplicate check (Case-insensitive) on endorsement_type
$exists = $this->EndorsementTypeModel
->where('LOWER(endorsement_type)', strtolower($input['endorsement_type']))
->where('is_active', 1)
// ->where('is_active', 1)
->first();
if ($exists) {
@ -530,7 +530,7 @@ class MasterController extends ResourceController
$checkDuplicate = $this->EndorsementTypeModel
->where('LOWER(endorsement_type)', strtolower($input['endorsement_type']))
->where('id !=', $id)
->where('is_active', 1)
// ->where('is_active', 1)
->first();
if ($checkDuplicate) {