Skip to content

A typical command line inventory management using Python (JSON based)

License

Notifications You must be signed in to change notification settings

Ajith-Kumar-G/InventoryManagement-JSON

Repository files navigation

InventoryManagement-JSON

A typical command line inventory management using Python (JSON based)

How to Begin ?

There are mainly two interfaces:
  1. For the Worker - ServerSide
  2. For the customer - CustomerSide
And the JSON files being generated/used are:
  1. inventory.json - To keep track of all the products (includes those which are out of stock too)
  2. outOfStock.json - To keep track of the products out of Stock
  3. sales.json - Details of each bill generated
  4. productSales.json - Each product sale descripion

ServerSide

Allows the worker to update the stock, as well add new products. Operates on 'inventory.json' file

ClientSide

Lists out all the Available products to the user, allowing them to buy the products and generates bill. Operates on all the JSON files mentioned above.

Definitions

inventory.json

{
   "ProductID": {
       "name": ,
       "price": ,
       "quantity": 
   }
  
}

outOfStock.json

{
  "ProductID DD/MM/YYYY HH:MM": {
      "name": ,
      "price":,
      "TimeDetail": 
  }
}

sales.json

{
  " DD/MM/YYYY HH:MM:SS": {
      "ProductID1": {
          "Qn": ,
          "total_price":,
          "name": 
      },
      "ProductID2": {
          "Qn": ,
          "total_price":,
          "name":
      }
  }
}

productSales.json

{
  "ProductID DD/MM/YYYY HH:MM": {
      "Qn": ,
      "total_price": ,
      "name": 
  }
}

About

A typical command line inventory management using Python (JSON based)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages