diff --git a/src/stores/quotations/index.ts b/src/stores/quotations/index.ts index 97d6cbb2..224a4176 100644 --- a/src/stores/quotations/index.ts +++ b/src/stores/quotations/index.ts @@ -108,6 +108,8 @@ export const useQuotationStore = defineStore('quotation-store', () => { const { _count, ...payload } = data; const res = await api.put(`/quotation/${data.id}`, { ...payload, + quotationStatus: + payload.quotationStatus !== 'Accepted' ? undefined : 'Accepted', paySplit: data.paySplit.map((v) => ({ name: v.name, amount: v.amount,