From c7875c7be3e3343ea8d7459b8c46e66ecad4a794 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 19 Feb 2026 11:59:36 -0800 Subject: [PATCH 1/2] IO-3570 Fix Regex to include numbers Signed-off-by: Allan Carr --- server/fortellis/fortellis.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/fortellis/fortellis.js b/server/fortellis/fortellis.js index 8f3fbeccb..a6c9caeb9 100644 --- a/server/fortellis/fortellis.js +++ b/server/fortellis/fortellis.js @@ -427,8 +427,8 @@ async function QueryDmsCustomerByName({ socket, redisHelpers, JobData }) { ? //? [["firstName", JobData.ownr_co_nm.replace(replaceSpecialRegex, "").toUpperCase()]] // Commented out until we receive direction. [["phone", JobData.ownr_ph1?.replace(replaceSpecialRegex, "")]] : [ - ["firstName", JobData.ownr_fn?.replace(/[^a-zA-Z-]/g, "").toUpperCase()], - ["lastName", JobData.ownr_ln?.replace(/[^a-zA-Z-]/g, "").toUpperCase()] + ["firstName", JobData.ownr_fn?.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase()], + ["lastName", JobData.ownr_ln?.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase()] ]; try { const result = await MakeFortellisCall({ @@ -471,9 +471,9 @@ async function InsertDmsCustomer({ socket, redisHelpers, JobData }) { : { customerName: { //"suffix": "Mr.", - firstName: JobData.ownr_fn && JobData.ownr_fn.replace(/[^a-zA-Z-]/g, "").toUpperCase(), + firstName: JobData.ownr_fn && JobData.ownr_fn.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase(), //"middleName": "", - lastName: JobData.ownr_ln && JobData.ownr_ln.replace(/[^a-zA-Z-]/g, "").toUpperCase() + lastName: JobData.ownr_ln && JobData.ownr_ln.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase() //"title": "", //"nickName": "" } From f6c5f85a874918f3309665623d87a071422b61f0 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 19 Feb 2026 12:04:44 -0800 Subject: [PATCH 2/2] IO-3570 Transwip fix Signed-off-by: Allan Carr --- server/fortellis/fortellis.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/server/fortellis/fortellis.js b/server/fortellis/fortellis.js index a6c9caeb9..45ab1b25e 100644 --- a/server/fortellis/fortellis.js +++ b/server/fortellis/fortellis.js @@ -285,7 +285,7 @@ async function FortellisSelectedCustomer({ socket, redisHelpers, selectedCustome //something CreateFortellisLogEvent(socket, "DEBUG", `{6} Successfully posted transaction to DMS.`); - await MarkJobExported({ socket, jobid: JobData.id, JobData }); + await MarkJobExported({ socket, jobid: JobData.id, JobData, redisHelpers }); try { CreateFortellisLogEvent(socket, "DEBUG", `{7} Updating Service Vehicle History.`); @@ -1295,8 +1295,14 @@ async function DeleteDmsWip({ socket, redisHelpers, JobData }) { } } -async function MarkJobExported({ socket, jobid, JobData }) { +async function MarkJobExported({ socket, jobid, JobData, redisHelpers }) { CreateFortellisLogEvent(socket, "DEBUG", `Marking job as exported for id ${jobid}`); + + const transwips = await redisHelpers.getSessionTransactionData( + socket.id, + getTransactionType(JobData.id), + FortellisCacheEnums.transWips + ); const client = new GraphQLClient(process.env.GRAPHQL_ENDPOINT, {}); const currentToken = @@ -1315,7 +1321,7 @@ async function MarkJobExported({ socket, jobid, JobData }) { jobid: jobid, successful: true, useremail: socket.user.email, - metadata: socket.transWips + metadata: transwips }, bill: { exported: true,