Inventory

Under Review

DOCUMENTSTOOLSUTILITY

Contract purpose

This Smart Contract creates an inventory to track all your company goods.

Exposed methods and variables

manager : address of the manager

addItem : allows the manager to add a new item to the inventory

parameter nametypedetails
_SeriesNrintegerthe unique identifier of the item
_ownerethereum addressthe address of the owner
_fromDateintegerthe date from when the ownership starts

changeItemOwner : called by the manager to change the ownership of the item and returns the previous owner id

parameter nametypedetails
_SeriesNrintegerthe unique identifier of the item
_ownerethereum addressthe address of the new owner
_fromDateintegerthe date from when the new ownership starts

getItemCurrentOwner : returns the current owner of the item

parameter nametypedetails
_SeriesNrintegerthe unique identifier of the item

getItemOwnerById : returns the previous owner of the item, specified by its id

parameter nametypedetails
_SeriesNrintegerthe unique identifier of the item
idintegerthe unique identifier of the previous owner
Reviewed by Modex
Buy

Copyright © Modex Marketplace