Update product-modal.tsx
This commit is contained in:
@@ -282,7 +282,7 @@ const ProductBasicInfo: React.FC<{
|
|||||||
name="lowStockThreshold"
|
name="lowStockThreshold"
|
||||||
type="number"
|
type="number"
|
||||||
min="1"
|
min="1"
|
||||||
step={productData.unitType === 'gr' ? '0.1' : '1'}
|
step={productData.unitType === 'gr' || productData.unitType === 'ml' ? '0.1' : '1'}
|
||||||
value={productData.lowStockThreshold || 10}
|
value={productData.lowStockThreshold || 10}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
placeholder="10"
|
placeholder="10"
|
||||||
@@ -297,7 +297,7 @@ const ProductBasicInfo: React.FC<{
|
|||||||
name="currentStock"
|
name="currentStock"
|
||||||
type="number"
|
type="number"
|
||||||
min="0"
|
min="0"
|
||||||
step={productData.unitType === 'gr' ? '0.1' : '1'}
|
step={productData.unitType === 'gr' || productData.unitType === 'ml' ? '0.1' : '1'}
|
||||||
value={productData.currentStock || 0}
|
value={productData.currentStock || 0}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
placeholder="0"
|
placeholder="0"
|
||||||
@@ -424,6 +424,7 @@ const UnitTypeSelect: React.FC<{
|
|||||||
<SelectItem value="pcs">Pieces (pcs)</SelectItem>
|
<SelectItem value="pcs">Pieces (pcs)</SelectItem>
|
||||||
<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>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
<Button type="button" variant="outline" size="sm" disabled>
|
<Button type="button" variant="outline" size="sm" disabled>
|
||||||
|
|||||||
Reference in New Issue
Block a user