FIX_The Vehicle Number field should be made non-mandatory, and a final validation should ensure that either the Vehicle Number or the Chassis Number is entered.

This commit is contained in:
venba-Inspriron-3558 2025-10-17 16:41:45 +05:30
parent 9d5cabd588
commit 167aabd341
2 changed files with 4 additions and 3 deletions

View File

@ -5634,7 +5634,6 @@
<div class="form-group col-md-4">
<label for="modal_vehicle_no">
Vehicle No
<span class="text-danger">*</span>
<small style="font-size: x-small;">( Normal: AA##AA#### | Bharat: ##BH####AA )</small>
</label>
<div class="vehicle-input-wrapper">

View File

@ -807,9 +807,11 @@ function appendVehicles(data, vehicle_id = null)
}));
$.each(data, function(index, item) {
var displayValue = item.vehicle_no ? item.vehicle_no : item.rc;
var dbValue = item.id
var option = $('<option>', {
value: item.id,
text: item.vehicle_no ?? item.rc,
value: dbValue,
text: displayValue,
'data-cid': item.owner,
'data-bid': item.branch_id,
'data-cty': item.client_type,