Add options

This commit is contained in:
NotII
2025-06-14 00:32:02 +01:00
parent 05ec33aa9d
commit 2df47e1052
2 changed files with 8 additions and 6 deletions

View File

@@ -411,7 +411,7 @@ const UnitTypeSelect: React.FC<{
if (val === "placeholder") return;
setProductData((prev) => ({
...prev,
unitType: val as 'pcs' | 'gr' | 'kg' | 'ml',
unitType: val as 'pcs' | 'gr' | 'kg' | 'ml' | 'oz' | 'lb',
}));
}}
>
@@ -426,6 +426,8 @@ const UnitTypeSelect: React.FC<{
<SelectItem value="gr">Grams (gr)</SelectItem>
<SelectItem value="kg">Kilograms (kg)</SelectItem>
<SelectItem value="ml">Milliliters (ml)</SelectItem>
<SelectItem value="oz">Ounces (oz)</SelectItem>
<SelectItem value="lb">Pounds (lb)</SelectItem>
</SelectContent>
</Select>
<Button type="button" variant="outline" size="sm" disabled>

View File

@@ -42,7 +42,7 @@ export interface Product {
currentStock?: number
lowStockThreshold?: number
stockStatus?: 'in_stock' | 'low_stock' | 'out_of_stock'
unitType: 'pcs' | 'gr' | 'kg' | 'ml'
unitType: 'pcs' | 'gr' | 'kg' | 'ml' | 'oz' | 'lb'
category: string
enabled?: boolean
pricing: PricingTier[]