From 64a9df2613da0427d939f521630591d3558f41c1 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 6 Aug 2024 08:57:07 +0700 Subject: [PATCH] feat: add customer branch --- src/pages/03_customer-management/form.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/03_customer-management/form.ts b/src/pages/03_customer-management/form.ts index e39c5723..036f34c5 100644 --- a/src/pages/03_customer-management/form.ts +++ b/src/pages/03_customer-management/form.ts @@ -139,7 +139,8 @@ export const useCustomerForm = defineStore('form-customer', () => { currentFormData.value.customerBranch?.push({ id: '', code: '', - branchNo: 1, + branchNo: + (currentFormData.value.customerBranch?.at(-1)?.branchNo || 0) + 1, address: '', addressEN: '', provinceId: '',