0% found this document useful (0 votes)
39 views2 pages

Inventory Management and Order Processing

The document outlines a process for managing inventory and customer orders. It includes steps to check inventory levels against reorder thresholds, process customer orders while checking stock availability, and generate a final report displaying updated inventory, total revenue, and products needing reordering. The inventory consists of three products with specified stock, thresholds, and costs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views2 pages

Inventory Management and Order Processing

The document outlines a process for managing inventory and customer orders. It includes steps to check inventory levels against reorder thresholds, process customer orders while checking stock availability, and generate a final report displaying updated inventory, total revenue, and products needing reordering. The inventory consists of three products with specified stock, thresholds, and costs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

inventory = {

"Product A": {"stock": 50, "threshold": 20, "cost": 10.0},

"Product B": {"stock": 15, "threshold": 10, "cost": 15.0},

"Product C": {"stock": 5, "threshold": 5, "cost": 20.0},

customer_orders = [

{"product": "Product A", "quantity": 10},

{"product": "Product B", "quantity": 5},

{"product": "Product C", "quantity": 6}, # Note: This exceeds available


stock

1. Check Inventory Levels:

 Write a function to check which products need reordering


based on their threshold values.

 Print a message indicating which products require reordering.

2. Process Customer Orders:

 Iterate through the customer_orders list and process each


order.

 For each order:

 Check if the requested quantity is available in stock.

 If sufficient stock is available:

 Deduct the quantity from the inventory.

 Calculate the revenue generated from the order.

 If insufficient stock is available:

 Print a message indicating the order cannot be


fulfilled due to low stock.

 Track the total revenue generated from all fulfilled orders.

Generate a Final Report:


 Display the updated inventory levels after processing all orders.

 Print the total revenue generated.

 Indicate which products still need reordering.

You might also like