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

@ -427,6 +427,7 @@ async function fetchQuotation() {
const id = currentQuotationId.value || quotationFormData.value.id || '';
await quotationForm.assignFormData(id, quotationFormState.value.mode);
tempPaySplitCount.value = quotationFormData.value.paySplitCount || 0;
tempPaySplit.value = JSON.parse(
JSON.stringify(quotationFormData.value.paySplit),
@ -609,6 +610,7 @@ async function convertDataToFormSubmit() {
status: quotationFormData.value.status,
discount: quotationFormData.value.discount,
remark: quotationFormData.value.remark || '',
agentPrice: agentPrice.value,
};
newWorkerList.value = [];

View file

@ -39,6 +39,7 @@ export const DEFAULT_DATA: QuotationPayload = {
_count: { worker: 0 },
status: 'CREATED',
remark: '#[quotation-labor]<br/><br/>#[quotation-payment]',
agentPrice: false,
};
const DEFAULT_DATA_INVOICE: InvoicePayload = {