fix: แก้ไขสาขาไม่ได้

This commit is contained in:
Net 2024-07-05 09:34:17 +07:00
parent 47c6a7dc2d
commit f8ec82626c

View file

@ -336,11 +336,13 @@ const useCustomerStore = defineStore('api-customer', () => {
transactionId?: string;
},
) {
const { code, branchNo, ...playload } = data;
const res = await api.put<
Customer & {
branch: CustomerBranch[];
}
>(`/customer-branch/${id}`, data, {
>(`/customer-branch/${id}`, playload, {
headers: {
'X-Session-Id': flow?.sessionId,
'X-Rtid': flow?.refTransactionId || flowStore.rtid,