Basic "Inventory Management Contract" Example
in this post i will be creating a Basic Inventory Management Contract Inventory management is the management of inventory and stock. As an element of supply chain managemen t, inventory management includes aspects such as controlling and overseeing ordering inventory, storage of inventory, and controlling the amount of product for sale. So here are the basics of the inventory system that i will be adding to the contract 1. Add a product to the Inventory (Only Creator) 2. Remove a product from the Inventory (Only Creator) 3. Replenish Products in the inventory (Only Creator) 4. allow anyone to order a product pragma solidity ^0.4.0; contract InventoryAresh{ struct Product{ string sku; //always unique to the product string itemName; string itemDescription; uint qty; //available qty uint thresholdQty; //minimum qty before reorder string location; UoM UnitOfMeasure; Status status; bool isValue; ...