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">
|
<div class="form-group col-md-4">
|
||||||
<label for="modal_vehicle_no">
|
<label for="modal_vehicle_no">
|
||||||
Vehicle No
|
Vehicle No
|
||||||
<span class="text-danger">*</span>
|
|
||||||
<small style="font-size: x-small;">( Normal: AA##AA#### | Bharat: ##BH####AA )</small>
|
<small style="font-size: x-small;">( Normal: AA##AA#### | Bharat: ##BH####AA )</small>
|
||||||
</label>
|
</label>
|
||||||
<div class="vehicle-input-wrapper">
|
<div class="vehicle-input-wrapper">
|
||||||
|
|||||||
@ -807,9 +807,11 @@ function appendVehicles(data, vehicle_id = null)
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
$.each(data, function(index, item) {
|
$.each(data, function(index, item) {
|
||||||
|
var displayValue = item.vehicle_no ? item.vehicle_no : item.rc;
|
||||||
|
var dbValue = item.id
|
||||||
var option = $('<option>', {
|
var option = $('<option>', {
|
||||||
value: item.id,
|
value: dbValue,
|
||||||
text: item.vehicle_no ?? item.rc,
|
text: displayValue,
|
||||||
'data-cid': item.owner,
|
'data-cid': item.owner,
|
||||||
'data-bid': item.branch_id,
|
'data-bid': item.branch_id,
|
||||||
'data-cty': item.client_type,
|
'data-cty': item.client_type,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user