validation : GWM
This commit is contained in:
parent
51648ee9f3
commit
2767a23881
@ -180,6 +180,7 @@ class PolicyController extends ResourceController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$updateData = [
|
$updateData = [
|
||||||
|
'rc_no' => $data['rc_no'] ?? $policy['rc_no'],
|
||||||
'insured_name' => $data['insured_name'] ?? $policy['insured_name'],
|
'insured_name' => $data['insured_name'] ?? $policy['insured_name'],
|
||||||
'issued_date' => format_date_for_database($data['issued_date']),
|
'issued_date' => format_date_for_database($data['issued_date']),
|
||||||
'start_date' => format_date_for_database($data['start_date']),
|
'start_date' => format_date_for_database($data['start_date']),
|
||||||
@ -205,6 +206,8 @@ class PolicyController extends ResourceController
|
|||||||
'model' => $data['model'] ?? null,
|
'model' => $data['model'] ?? null,
|
||||||
'cubic_capacity' => $data['cubic_capacity'] ?? null,
|
'cubic_capacity' => $data['cubic_capacity'] ?? null,
|
||||||
'vehicle_type' => $data['vehicle_type'] ?? null,
|
'vehicle_type' => $data['vehicle_type'] ?? null,
|
||||||
|
'broker_name' => $data['broker_name'] ?? null,
|
||||||
|
'commission_amount' => $data['commission_amount'] ?? null,
|
||||||
'updated_by' => $data['updated_by'] ?? null,
|
'updated_by' => $data['updated_by'] ?? null,
|
||||||
'is_data_accuracy_checked'=> 1
|
'is_data_accuracy_checked'=> 1
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user