This commit is contained in:
g
2025-02-07 05:22:21 +00:00
parent f19797e752
commit 3205bb1a6b
11 changed files with 1021 additions and 432 deletions

View File

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