hmm
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
// In models/products.ts
|
||||
export interface Product {
|
||||
_id?: string;
|
||||
name: string;
|
||||
description: string;
|
||||
unitType: "pcs" | "gr" | "kg";
|
||||
category: string;
|
||||
tieredPricing: { minQuantity: number; pricePerUnit: number }[]; // Make pricePerUnit a number
|
||||
image?: string | null;
|
||||
}
|
||||
|
||||
_id?: string;
|
||||
name: string;
|
||||
description: string;
|
||||
unitType: string;
|
||||
category: string;
|
||||
tieredPricing: Array<{
|
||||
minQuantity: number;
|
||||
pricePerUnit: number;
|
||||
}>;
|
||||
image?: string | File | null;
|
||||
}
|
||||
Reference in New Issue
Block a user