Why our stock ordering isn't automatic is beyond me, it's 2023, and we aren't using an automated system. Analysing historical sales data, seasonal trends, social media analytics, customer surveys and feedback (yeah right), competitor analysis, customer segmentation, etc etc. I ran better sales campaigns as an 18 year old selling Fruit of the Loom tops online.
threshold = 100
order_quantity = 200
def reorder_stock(current_inventory):
if current_inventory < threshold:
reorder_amount = threshold - current_inventory
place_order(reorder_amount)
current_inventory += reorder_amount
return current_inventory
def place_order(quantity):
print(f"Placing an order for {quantity} units.")