Merge branch 'develop'
This commit is contained in:
commit
9e74fb0fe6
1 changed files with 2 additions and 6 deletions
|
|
@ -300,10 +300,7 @@ const flowAccount = {
|
|||
);
|
||||
const payload = {
|
||||
contactCode: customer.code,
|
||||
contactName:
|
||||
(customer.customer.customerType === CustomerType.PERS
|
||||
? [customer.firstName, customer.lastName].join(" ").trim()
|
||||
: customer.registerName) || "-",
|
||||
contactName: customer.contactName || "-",
|
||||
contactAddress: [
|
||||
customer.address,
|
||||
!!customer.moo ? "หมู่ " + customer.moo : null,
|
||||
|
|
@ -312,11 +309,10 @@ const flowAccount = {
|
|||
(customer.province?.id === "10" ? "แขวง" : "อำเภอ") + customer.subDistrict?.name,
|
||||
(customer.province?.id === "10" ? "เขต" : "ตำบล") + customer.district?.name,
|
||||
"จังหวัด" + customer.province?.name,
|
||||
customer.subDistrict?.zipCode,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" "),
|
||||
contactTaxId: customer.citizenId || customer.code,
|
||||
contactTaxId: customer.citizenId || customer.legalPersonNo || "-",
|
||||
contactBranch:
|
||||
(customer.customer.customerType === CustomerType.PERS
|
||||
? [customer.firstName, customer.lastName].join(" ").trim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue