Python
Python
On
Store Management System
Submitted by:
Roll No. Name of the students Enrollment number
SEMESTER- 2024-25
CERTIFICATE
This is to certify that Project report entitled "Store Management System" is submitted in
the partial fulfillment of requirement for the award of the Diploma in Computer
Engineering by Maharashtra State Board of Technical Education as record of students'
own work carried out by them under the guidance and supervision at Ajeenkya DY Patil
School Of Engineering (Charholi), during the academic year 2024-25.
The aim of this Store Management System Microproject is to create a simple system that
helps manage inventory, process sales, and generate reports efficiently. It focuses on automating
routine tasks to improve accuracy, save time, and streamline store operations. Additionally, it
provides a practical learning opportunity for developing programming skills in Python.
2. Action Plan:
4. Collecting information
5. Making proposal
7. Preparation of
final project
report
2.
3.
The Store class manages the inventory of items, allowing users to add new products,
view the current inventory, and make sales transactions. The main program features
a text-based menu that lets users interact with the system by adding items, viewing
stock, and selling products.
The add_item method allows new products to be added to the inventory, while the
view_inventory method displays the list of all available items. When a sale is made,
the make_sale method reduces the item’s stock and calculates the total cost for the
customer.
The system is user-friendly, with simple prompts guiding the user through the
process of managing the store. Future improvements could include features like file
handling to store inventory data between sessions, advanced sales reporting, search
functionality, and better error handling for invalid inputs. This project is a great
foundation for beginners to practice Python and expand on more complex
functionalities.
➢ CODE of File Management (in vs code )
class Item:
self.name = name
self.price = price
self.quantity = quantity
def __str__(self):
return f"Item Name: {self.name}, Price: ${self.price}, Quantity: {self.quantity}"
else:
print(f"Not enough stock for {self.name}.")
return 0
class Store:
def __init__(self):
self.inventory = {}
else:
item = Item(name, price, quantity)
self.inventory[name] = item
print(f"Item {name} added successfully.")
def view_inventory(self):
if not self.inventory:
print("No items in inventory.")
for item in self.inventory.values():
print(item)
if name in self.inventory:
total = self.inventory[name].sell_item(quantity)
if total > 0:
print(f"Sale completed! Total: ${total}")
else:
print("Sale failed due to insufficient stock.")
else:
print(f"Item {name} not found in inventory.")
def main():
store = Store()
while True:
print("\n--- Store Management System ---")
print("1. Add Item")
print("2. View Inventory")
print("3. Make Sale")
print("4. Exit")
if choice == '1':
name = input("Enter item name: ")
price = float(input("Enter item price: "))
quantity = int(input("Enter item quantity: "))
store.add_item(name, price, quantity)
else:
print("Invalid choice, please try again.")
if __name__ == "__main__":
main()
OUTPUT:-
1. Add Item
2. View Inventory
3. Make Sale
4. Exit
Enter your choice: 1
Enter item name: Apple
Enter item price: 1.5
Enter item quantity: 50
Item Apple added successfully.
1. Add Item
2. View Inventory
3. Make Sale
4. Exit
Enter your choice: 1
Enter item name: Banana
Enter item price: 0.75
Enter item quantity: 100
Item Banana added successfully.
1. Add Item
2. View Inventory
3. Make Sale
4. Exit
Enter your choice: 2
Item Name: Apple, Price: $1.5, Quantity: 50
Item Name: Banana, Price: $0.75, Quantity: 100
1. Add Item
2. View Inventory
3. Make Sale
4. Exit
Enter your choice: 3
Enter item name for sale: Apple
Enter quantity to sell: 20
Sale completed! Total: $30.0
1. Add Item
2. View Inventory
3. Make Sale
4. Exit
Enter your choice: 2
Item Name: Apple, Price: $1.5, Quantity: 30
Item Name: Banana, Price: $0.75, Quantity: 100
--- Store Management System ---
1. Add Item
2. View Inventory
3. Make Sale
4. Exit
Enter your choice: 4
Exiting Store Management System.
• Helps keep track of stock levels and ensures products are always available when
customers need them, reducing stockouts and overstocking.
2. Better Organization
• Streamlines store operations, from product placement to sales, making it easier to manage
and find products. This leads to smoother daily operations.
3. Increased Efficiency
• Automates tasks like inventory tracking, order processing, and sales recording, which
reduces manual effort and allows staff to focus on more important tasks.
• Ensures products are always available and reduces wait times, leading to happier
customers. Customers appreciate a well-organized store where they can find what they
need easily.
5. Real-Time Data
• Provides up-to-date sales and inventory information, helping store owners make informed
decisions on restocking and pricing. It helps identify trends and popular products.
6. Cost Savings
• Efficient management reduces waste (e.g., unsold products) and helps optimize stock
levels, saving money on unnecessary orders.
• Helps track sales, revenue, and expenses, making it easier to maintain budgets, generate
reports, and make smart financial decisions.
8. Reduced Errors
• By automating inventory management and sales tracking, the risk of human error (like
wrong stock counts or price miscalculations) is minimized.
9. Scalability
• As the store grows, store management systems can scale with it, handling more products,
transactions, and customers without overwhelming the staff.
• Ensures that the store complies with tax laws, regulations, and financial reporting
requirements. It can generate reports for audits or tax filings.
• Makes it easier for employees to process sales, improving checkout speed and reducing
customer wait time.
A store management system is crucial for the smooth operation of any retail
business. It helps streamline inventory control, improve efficiency, and ensure that
customers have a positive experience by always having the products they need. With
the automation of tasks like inventory tracking, sales processing, and financial
management, businesses can save time, reduce errors, and make informed decisions
based on real-time data.