Skip to content

Commit

Permalink
Add entityId while creating customer
Browse files Browse the repository at this point in the history
  • Loading branch information
SushilMallRC committed Dec 9, 2024
1 parent 056bb6c commit 52d96af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adapters/netsuite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,12 @@ async function createContact({ user, authHeader, phoneNumber, newContactName, ne
}
}
case 'custjob':
const lastName = nameParts.lastName.length > 0 ? nameParts.lastName : nameParts.firstName;
const customerPayLoad = {
firstName: nameParts.firstName,
middleName: nameParts.middleName,
lastName: nameParts.lastName.length > 0 ? nameParts.lastName : nameParts.firstName,
lastName: lastName,
entityId: nameParts.firstName + " " + lastName,
phone: phoneNumber || '',
isPerson: true

Expand Down

0 comments on commit 52d96af

Please sign in to comment.