Merged in feature/IO-2233-CDK-VEHICLE-LICENSE-PLATE (pull request #803)

IO-2233 CDK Vehicle License Plate Standardization

Approved-by: Patrick Fic
This commit is contained in:
Allan Carr
2023-05-24 21:05:21 +00:00
committed by Patrick Fic

View File

@@ -729,7 +729,9 @@ async function InsertDmsVehicle(socket) {
deliveryDate: moment()
// .tz(socket.JobData.bodyshop.timezone)
.format("YYYYMMDD"),
licensePlateNo: socket.JobData.plate_no,
licensePlateNo: String(socket.JobData.plate_no)
.replace(/([^\w]|_)/g, "")
.toUpperCase(),
make: socket.txEnvelope.dms_make,
modelAbrev: socket.txEnvelope.dms_model,
modelYear: socket.JobData.v_model_yr,