refactor: add agent price

This commit is contained in:
Thanaphon Frappet 2025-01-30 14:05:20 +07:00
parent 0be0ce4c49
commit 5c3d2f1499
4 changed files with 5 additions and 1 deletions

View file

@ -119,7 +119,7 @@ export const useQuotationStore = defineStore('quotation-store', () => {
}
async function editQuotation(data: QuotationPayload & { id: string }) {
const { _count, ...payload } = data;
const { _count, agentPrice, ...payload } = data;
const res = await api.put(`/quotation/${data.id}`, {
...payload,
quotationStatus:

View file

@ -371,6 +371,7 @@ export type QuotationPayload = {
status?: Status;
remark?: string;
quotationStatus?: QuotationStatus;
agentPrice?: boolean;
};
export type EmployeeWorker = {