fix: flowaccount contact name
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
6598cd3bdf
commit
beb7f4bcfe
1 changed files with 1 additions and 5 deletions
|
|
@ -300,10 +300,7 @@ const flowAccount = {
|
||||||
);
|
);
|
||||||
const payload = {
|
const payload = {
|
||||||
contactCode: customer.code,
|
contactCode: customer.code,
|
||||||
contactName:
|
contactName: customer.contactName || "-",
|
||||||
(customer.customer.customerType === CustomerType.PERS
|
|
||||||
? [customer.firstName, customer.lastName].join(" ").trim()
|
|
||||||
: customer.registerName) || "-",
|
|
||||||
contactAddress: [
|
contactAddress: [
|
||||||
customer.address,
|
customer.address,
|
||||||
!!customer.moo ? "หมู่ " + customer.moo : null,
|
!!customer.moo ? "หมู่ " + customer.moo : null,
|
||||||
|
|
@ -312,7 +309,6 @@ const flowAccount = {
|
||||||
(customer.province?.id === "10" ? "แขวง" : "อำเภอ") + customer.subDistrict?.name,
|
(customer.province?.id === "10" ? "แขวง" : "อำเภอ") + customer.subDistrict?.name,
|
||||||
(customer.province?.id === "10" ? "เขต" : "ตำบล") + customer.district?.name,
|
(customer.province?.id === "10" ? "เขต" : "ตำบล") + customer.district?.name,
|
||||||
"จังหวัด" + customer.province?.name,
|
"จังหวัด" + customer.province?.name,
|
||||||
customer.subDistrict?.zipCode,
|
|
||||||
]
|
]
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join(" "),
|
.join(" "),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue