This is an Inventory Management system created using python 3.9 and its various modules & libraries. This system can be preferably used in a pharmaceutical store or a website of a pharmaceutical company(like Medplus).
You need to have a python platform on your system.
- Download all the files in your pc but make sure to keep all of them in the exact same folder else the code will not execute.
- Open Inventory Management system .ipynb file.
- Later, hit run and the code will start executing.
The python libraries I used are:-
- json
- datetime
- time
- random
- It can check the availability of the ordered drug and will reply as per the stock.
- It has a prescription checker to check if the drug can be sold over the counter or not for legal restrictions.
- It comes with a bill at the end which is quite detailed,compact and eye-catching
- You can also check the after sales record in the sales.json file.
- All the bill number are completely random and unique.
- On the bill you can find your name, exact time of check-out and the present date!!
- A time delayer for giving a real feel while it checks for the stocks.
I used error and exception handling extensively to eliminate all the bugs and interrupting errors. After entering name,throughtout the code you will encounter number of instances of user input. User are bound to enter incorrect item code or choices or even entering a character instead of a specified number. But there's no need to worry as all those problems are handled carefully and the user will be asked to enter the correct information repeatedly until it matches the criteria.
I myself created the data set using dictionary in python then converted it in Json. It has 30 products and each product has 7 attributes/properties:-
- Drug name
- Expiry date
- Price
- Country of origin
- Over the counter permission
- Bar code no
- Quantity available
- mg(power)
- Unique item code
All the names of drug are real and legit although their attributes are all made-up by me..
First things first reading the data with file handling.Then it asks for your name.Once you hit enter a complete list of all the drugs and their corresponding item code is displayed along with its mg.You need to enter the item code of the medicine you need and the quantity. The program checks for the required drug and its availability with a time delayer (you can see the stars looking like a loading bar)
- now if the item is available with sufficient quantity and over the counter permissions then it will be added to cart and ask to add more items or proceed to check-out options.
- or if the quantity is less then stated then it will ask to proceed with whatever available then according to user choice it will either add it to cart or ask to add more items or proceed to check-out options.
- or finally if the item is not sold without prescription then it will reject your request and will ask for new item or checkout subsequently.
You can add as many products as you want in accordance with the availability and then you can proceed to check-out. Here you will get a bill with all you purchased drug name,it's price,Quantity_Purhased,barcode and expiry.There are some dynamic features in the bill too like:
- Unique bill no for future reference.
- Your name is printed on the bill.
- Exact date & time is also present on the bill.
At the very end you can find a grand total of your purchase. You can also check for the same in the sales.json file.It has a dictionary with the bill no as key and all drugs information in the bill as value.
- Gmail- kartikgparashar786@gmail.com
- Kaggle - https://www.kaggle.com/kartikparashar
- Linkedin - www.linkedin.com/in/kartik-parashar-90bb1a1a4
- HackerRank- https://www.hackerrank.com/Blu_Dragon
- This Repo- https://github.com/kartikparashar786/Inventory-Management-System
Made by-Kartik Parashar