feat: add separate price vat calc

This commit is contained in:
Methapon2001 2025-01-28 09:44:18 +07:00
parent ef81a93690
commit 310464f834
7 changed files with 344 additions and 280 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

@ -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;