Merge branch 'feat/separate-price-calc' into develop

This commit is contained in:
Methapon2001 2025-01-30 16:54:42 +07:00
commit 84282ff5ce
18 changed files with 744 additions and 332 deletions

View file

@ -160,6 +160,10 @@ export interface Product {
calcVat: boolean;
expenseType: string;
vatIncluded: boolean;
agentPriceVatIncluded: boolean;
agentPriceCalcVat: boolean;
serviceChargeVatIncluded: boolean;
serviceChargeCalcVat: boolean;
remark: string;
updatedAt: string;
updatedBy: UpdatedBy;
@ -189,8 +193,12 @@ export interface ProductCreate {
productGroupId: string;
remark: string;
serviceCharge: number;
serviceChargeCalcVat: boolean;
serviceChargeVatIncluded: boolean;
calcVat?: boolean;
agentPrice: number;
agentPriceCalcVat: boolean;
agentPriceVatIncluded: boolean;
price: number;
process: number;
detail: string;

View file

@ -120,7 +120,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

@ -143,6 +143,10 @@ export type ProductRelation = {
serviceCharge: number;
vatIncluded: boolean;
calcVat: boolean;
agentPriceVatIncluded: boolean;
agentPriceCalcVat: boolean;
serviceChargeVatIncluded: boolean;
serviceChargeCalcVat: boolean;
expenseType: string;
status: Status;
statusOrder: number;
@ -367,6 +371,7 @@ export type QuotationPayload = {
status?: Status;
remark?: string;
quotationStatus?: QuotationStatus;
agentPrice?: boolean;
};
export type EmployeeWorker = {