
Command-line tool to manage product inventory, generate bills with discounts, and create PDF receipts.
The Inventory Management System is a command-line based Python application designed to streamline inventory tracking and billing operations. It allows users to manage multiple product purchases, updates stock in real time, and applies automatic discounts on purchases over ₹5000.
The system leverages JSON for persistent data storage and FPDF for generating professional PDF receipts. It offers a simple yet effective solution for small-scale retailers or shop owners to manage sales efficiently without the need for complex interfaces.
Allows selection and billing of multiple products in one transaction with real-time inventory updates.
Automatically applies a 10% discount on purchases above ₹5000 to incentivize larger sales.
Generates clean, professional PDF receipts using the FPDF library after each transaction.
Stores inventory data and transaction logs in JSON files to ensure data persistence.
User-friendly CLI with clear prompts, validations, and streamlined input flow for quick operations.
Logs all transactions and can be extended to generate daily or monthly sales summaries.
Solution: Designed a robust logic structure using lists and dictionaries to handle multiple selections, track quantities, and update inventory dynamically during a single session.
Solution: Applied a discount rule (10% for purchases over ₹5000) using condition checks, while ensuring accurate total calculation and receipt reflection with rounded outputs.
Solution: Integrated the FPDF library and created a layout that mimics a standard retail receipt, including headers, product details, discounts, and totals—fully automated at the end of every transaction.