Skip to content

80396-B2/Inventory-Management-System

Repository files navigation

Inventory-Management-System

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).

Getting Started

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.

Modules/Libraries used

The python libraries I used are:-

  • json
  • datetime
  • time
  • random

Features

  • 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.

Special facts

  • 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.

Bugs and errors handling along with input loop

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.

Data set

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..

Description/Working

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. Image of 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.

Links

Made by-Kartik Parashar

About

This a Inventory Management system created using python and its various modules libraries. Check out readme file for detailed info.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published