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:
parent
9d5cabd588
commit
167aabd341
@ -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">
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user