diff --git a/src/stores/quotations/index.ts b/src/stores/quotations/index.ts index 43be6352..541649e0 100644 --- a/src/stores/quotations/index.ts +++ b/src/stores/quotations/index.ts @@ -81,8 +81,9 @@ export const useQuotationStore = defineStore('quotation-store', () => { return null; } - async function editQuotation(payload: QuotationPayload & { id: string }) { - const res = await api.put(`/quotation/${payload.id}`, { + async function editQuotation(data: QuotationPayload & { id: string }) { + const { _count, ...payload } = data; + const res = await api.put(`/quotation/${data.id}`, { ...payload, productServiceList: payload.productServiceList.map((v) => ({ vat: v.vat,