IO-3570 Strip - from Owner Name in regex
Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
@@ -427,8 +427,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(/[^0-9]/g, "")]]
|
[["phone", JobData.ownr_ph1?.replace(/[^0-9]/g, "")]]
|
||||||
: [
|
: [
|
||||||
["firstName", JobData.ownr_fn?.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase()],
|
["firstName", JobData.ownr_fn?.replace(/[^a-zA-Z0-9]/g, "").toUpperCase()],
|
||||||
["lastName", JobData.ownr_ln?.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase()]
|
["lastName", JobData.ownr_ln?.replace(/[^a-zA-Z0-9]/g, "").toUpperCase()]
|
||||||
];
|
];
|
||||||
try {
|
try {
|
||||||
const result = await MakeFortellisCall({
|
const result = await MakeFortellisCall({
|
||||||
@@ -471,9 +471,9 @@ async function InsertDmsCustomer({ socket, redisHelpers, JobData }) {
|
|||||||
: {
|
: {
|
||||||
customerName: {
|
customerName: {
|
||||||
//"suffix": "Mr.",
|
//"suffix": "Mr.",
|
||||||
firstName: JobData.ownr_fn && JobData.ownr_fn.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase(),
|
firstName: JobData.ownr_fn && JobData.ownr_fn.replace(/[^a-zA-Z0-9]/g, "").toUpperCase(),
|
||||||
//"middleName": "",
|
//"middleName": "",
|
||||||
lastName: JobData.ownr_ln && JobData.ownr_ln.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase()
|
lastName: JobData.ownr_ln && JobData.ownr_ln.replace(/[^a-zA-Z0-9]/g, "").toUpperCase()
|
||||||
//"title": "",
|
//"title": "",
|
||||||
//"nickName": ""
|
//"nickName": ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user