IO-1375 Special characters in CDK
This commit is contained in:
@@ -584,7 +584,7 @@ async function InsertDmsCustomer(socket, newCustomerNumber) {
|
|||||||
addressLine:
|
addressLine:
|
||||||
socket.JobData.ownr_addr1 &&
|
socket.JobData.ownr_addr1 &&
|
||||||
socket.JobData.ownr_addr1.replace(replaceSpecialRegex, ""),
|
socket.JobData.ownr_addr1.replace(replaceSpecialRegex, ""),
|
||||||
city: socket.JobData.ownr_city.replace(replaceSpecialRegex, ""),
|
city: socket.JobData.ownr_city&& socket.JobData.ownr_city.replace(replaceSpecialRegex, ""),
|
||||||
country: null,
|
country: null,
|
||||||
postalCode:
|
postalCode:
|
||||||
socket.JobData.ownr_zip &&
|
socket.JobData.ownr_zip &&
|
||||||
@@ -592,7 +592,7 @@ async function InsertDmsCustomer(socket, newCustomerNumber) {
|
|||||||
.toUpperCase()
|
.toUpperCase()
|
||||||
.replace(/\W/g, "")
|
.replace(/\W/g, "")
|
||||||
.replace(/(...)/, "$1 "),
|
.replace(/(...)/, "$1 "),
|
||||||
stateOrProvince: socket.JobData.ownr_st,
|
stateOrProvince: socket.JobData.ownr_st&&socket.JobData.ownr_st.replace(replaceSpecialRegex, ""),
|
||||||
},
|
},
|
||||||
contactInfo: {
|
contactInfo: {
|
||||||
mainTelephoneNumber: {
|
mainTelephoneNumber: {
|
||||||
@@ -1090,18 +1090,6 @@ async function GenerateTransWips(socket) {
|
|||||||
|
|
||||||
wips.push(item);
|
wips.push(item);
|
||||||
});
|
});
|
||||||
|
|
||||||
//should validate that the wips = 0
|
|
||||||
|
|
||||||
console.log(
|
|
||||||
"WIPS TOTAL",
|
|
||||||
wips.reduce((acc, val) => {
|
|
||||||
console.log(val);
|
|
||||||
console.log(acc + val.postAmt);
|
|
||||||
return acc + val.postAmt;
|
|
||||||
}, 0)
|
|
||||||
);
|
|
||||||
|
|
||||||
return wips;
|
return wips;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user