From beb7f4bcfe669120caa7396742f41f466098d16f Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:34:54 +0700 Subject: [PATCH] fix: flowaccount contact name --- src/services/flowaccount.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/services/flowaccount.ts b/src/services/flowaccount.ts index 90eb5c0..33e09cf 100644 --- a/src/services/flowaccount.ts +++ b/src/services/flowaccount.ts @@ -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,7 +309,6 @@ 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(" "),