IO-2259 Trim Company Name before seeing if ""
This commit is contained in:
@@ -224,7 +224,7 @@ async function CdkSelectedCustomer(socket, selectedCustomerId) {
|
|||||||
} finally {
|
} finally {
|
||||||
//Ensure we always insert logEvents
|
//Ensure we always insert logEvents
|
||||||
//GQL to insert logevents.
|
//GQL to insert logevents.
|
||||||
|
|
||||||
CdkBase.createLogEvent(
|
CdkBase.createLogEvent(
|
||||||
socket,
|
socket,
|
||||||
"DEBUG",
|
"DEBUG",
|
||||||
@@ -432,7 +432,7 @@ async function QueryDmsCustomerById(socket, JobData, CustomerId) {
|
|||||||
|
|
||||||
async function QueryDmsCustomerByName(socket, JobData) {
|
async function QueryDmsCustomerByName(socket, JobData) {
|
||||||
const ownerName = (
|
const ownerName = (
|
||||||
JobData.ownr_co_nm && JobData.ownr_co_nm !== ""
|
JobData.ownr_co_nm && JobData.ownr_co_nm.trim() !== ""
|
||||||
? JobData.ownr_co_nm
|
? JobData.ownr_co_nm
|
||||||
: `${JobData.ownr_ln},${JobData.ownr_fn}`
|
: `${JobData.ownr_ln},${JobData.ownr_fn}`
|
||||||
).replace(replaceSpecialRegex, "");
|
).replace(replaceSpecialRegex, "");
|
||||||
@@ -642,7 +642,8 @@ async function InsertDmsCustomer(socket, newCustomerNumber) {
|
|||||||
.toUpperCase(),
|
.toUpperCase(),
|
||||||
middleName: null,
|
middleName: null,
|
||||||
nameType:
|
nameType:
|
||||||
socket.JobData.ownr_co_nm && socket.JobData.ownr_co_nm
|
socket.JobData.ownr_co_nm &&
|
||||||
|
String(socket.JobData.ownr_co_nm).trim() !== ""
|
||||||
? "Business"
|
? "Business"
|
||||||
: "Person",
|
: "Person",
|
||||||
suffix: null,
|
suffix: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user