Add base kubernetes support 5
This commit is contained in:
@@ -760,9 +760,9 @@ class InventoryService:
|
||||
# Add business validation logic here
|
||||
if ingredient_data.reorder_point <= ingredient_data.low_stock_threshold:
|
||||
raise ValueError("Reorder point must be greater than low stock threshold")
|
||||
|
||||
if ingredient_data.requires_freezing and ingredient_data.requires_refrigeration:
|
||||
raise ValueError("Item cannot require both freezing and refrigeration")
|
||||
|
||||
|
||||
# Storage requirements validation moved to stock level (not ingredient level)
|
||||
# This is now handled in stock creation/update validation
|
||||
|
||||
# Add more validations as needed
|
||||
pass
|
||||
Reference in New Issue
Block a user