refactor: handle QuotationStatus at create

This commit is contained in:
Thanaphon Frappet 2024-10-28 08:53:34 +07:00
parent b74a8d1a09
commit d9c4de6315

View file

@ -60,7 +60,7 @@ export const useQuotationStore = defineStore('quotation-store', () => {
}
async function createQuotation(data: QuotationPayload) {
const { _count, ...payload } = data;
const { _count, quotationStatus, ...payload } = data;
const res = await api.post('/quotation', {
...payload,