Add options
This commit is contained in:
@@ -411,7 +411,7 @@ const UnitTypeSelect: React.FC<{
|
|||||||
if (val === "placeholder") return;
|
if (val === "placeholder") return;
|
||||||
setProductData((prev) => ({
|
setProductData((prev) => ({
|
||||||
...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="gr">Grams (gr)</SelectItem>
|
||||||
<SelectItem value="kg">Kilograms (kg)</SelectItem>
|
<SelectItem value="kg">Kilograms (kg)</SelectItem>
|
||||||
<SelectItem value="ml">Milliliters (ml)</SelectItem>
|
<SelectItem value="ml">Milliliters (ml)</SelectItem>
|
||||||
|
<SelectItem value="oz">Ounces (oz)</SelectItem>
|
||||||
|
<SelectItem value="lb">Pounds (lb)</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
<Button type="button" variant="outline" size="sm" disabled>
|
<Button type="button" variant="outline" size="sm" disabled>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export interface Product {
|
|||||||
currentStock?: number
|
currentStock?: number
|
||||||
lowStockThreshold?: number
|
lowStockThreshold?: number
|
||||||
stockStatus?: 'in_stock' | 'low_stock' | 'out_of_stock'
|
stockStatus?: 'in_stock' | 'low_stock' | 'out_of_stock'
|
||||||
unitType: 'pcs' | 'gr' | 'kg' | 'ml'
|
unitType: 'pcs' | 'gr' | 'kg' | 'ml' | 'oz' | 'lb'
|
||||||
category: string
|
category: string
|
||||||
enabled?: boolean
|
enabled?: boolean
|
||||||
pricing: PricingTier[]
|
pricing: PricingTier[]
|
||||||
|
|||||||
Reference in New Issue
Block a user