Skip to content

Commit

Permalink
EDIT service
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimskay1988 committed May 17, 2023
1 parent fd98496 commit de7bbe5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Inventory/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def process_item_status(data):

if red_line:
item_status = "Low stock level"
item.current_stock_level = min_item - 1
if min_item == 0:
item.current_stock_level = 0
else:
item.current_stock_level = min_item - 1
item_data["count"] = min_item - 1
else:
item_status = "In stock"
Expand Down

0 comments on commit de7bbe5

Please sign in to comment.