Merge remote-tracking branch 'origin/master-AIO' into feature/IO-3544-Ant-Select-Deprecation
This commit is contained in:
@@ -432,8 +432,8 @@ async function QueryDmsCustomerByName({ socket, redisHelpers, JobData }) {
|
|||||||
//? [["firstName", JobData.ownr_co_nm.replace(replaceSpecialRegex, "").toUpperCase()]] // Commented out until we receive direction.
|
//? [["firstName", JobData.ownr_co_nm.replace(replaceSpecialRegex, "").toUpperCase()]] // Commented out until we receive direction.
|
||||||
? [["phone", JobData.ownr_ph1?.replace(replaceSpecialRegex, "")]]
|
? [["phone", JobData.ownr_ph1?.replace(replaceSpecialRegex, "")]]
|
||||||
: [
|
: [
|
||||||
["firstName", JobData.ownr_fn?.replace(replaceSpecialRegex, "").toUpperCase()],
|
["firstName", JobData.ownr_fn?.replace(/[^a-zA-Z-]/g, "").toUpperCase()],
|
||||||
["lastName", JobData.ownr_ln?.replace(replaceSpecialRegex, "").toUpperCase()]
|
["lastName", JobData.ownr_ln?.replace(/[^a-zA-Z-]/g, "").toUpperCase()]
|
||||||
];
|
];
|
||||||
try {
|
try {
|
||||||
const result = await MakeFortellisCall({
|
const result = await MakeFortellisCall({
|
||||||
@@ -474,9 +474,9 @@ async function InsertDmsCustomer({ socket, redisHelpers, JobData }) {
|
|||||||
} : {
|
} : {
|
||||||
customerName: {
|
customerName: {
|
||||||
//"suffix": "Mr.",
|
//"suffix": "Mr.",
|
||||||
firstName: JobData.ownr_fn && JobData.ownr_fn.replace(replaceSpecialRegex, "").toUpperCase(),
|
firstName: JobData.ownr_fn && JobData.ownr_fn.replace(/[^a-zA-Z-]/g, "").toUpperCase(),
|
||||||
//"middleName": "",
|
//"middleName": "",
|
||||||
lastName: JobData.ownr_ln && JobData.ownr_ln.replace(replaceSpecialRegex, "").toUpperCase()
|
lastName: JobData.ownr_ln && JobData.ownr_ln.replace(/[^a-zA-Z-]/g, "").toUpperCase()
|
||||||
//"title": "",
|
//"title": "",
|
||||||
//"nickName": ""
|
//"nickName": ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,7 +120,12 @@ const createMinimalRRRepairOrder = async (args) => {
|
|||||||
advisorNo: String(advisorNo),
|
advisorNo: String(advisorNo),
|
||||||
vin: cleanVin,
|
vin: cleanVin,
|
||||||
departmentType: "B",
|
departmentType: "B",
|
||||||
outsdRoNo: job?.ro_number || job?.id || undefined
|
outsdRoNo: job?.ro_number || job?.id || undefined,
|
||||||
|
estimate: {
|
||||||
|
parts: "0",
|
||||||
|
labor: "0",
|
||||||
|
total: "0.00"
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Only add mileageIn if we have a valid value
|
// Only add mileageIn if we have a valid value
|
||||||
|
|||||||
Reference in New Issue
Block a user