feat: add customer branch

This commit is contained in:
Methapon2001 2024-08-06 08:57:07 +07:00
parent e58db7085c
commit 64a9df2613

View file

@ -139,7 +139,8 @@ export const useCustomerForm = defineStore('form-customer', () => {
currentFormData.value.customerBranch?.push({ currentFormData.value.customerBranch?.push({
id: '', id: '',
code: '', code: '',
branchNo: 1, branchNo:
(currentFormData.value.customerBranch?.at(-1)?.branchNo || 0) + 1,
address: '', address: '',
addressEN: '', addressEN: '',
provinceId: '', provinceId: '',