feat: update product fields

This commit is contained in:
Methapon2001 2024-06-14 16:53:48 +07:00
parent 51fd6b0589
commit d86a209639
3 changed files with 22 additions and 8 deletions

View file

@ -30,19 +30,21 @@ type ProductCreate = {
code: "AC" | "DO" | "ac" | "do";
name: string;
detail: string;
process: string;
process: number;
price: number;
agentPrice: number;
serviceCharge: number;
remark?: string;
};
type ProductUpdate = {
name: string;
detail: string;
process?: string;
price: number;
agentPrice: number;
serviceCharge: number;
name?: string;
detail?: string;
process?: number;
price?: number;
agentPrice?: number;
serviceCharge?: number;
remark?: string;
};
function imageLocation(id: string) {