Overview
TheInventoryItem class represents an item in the inventory system. It tracks the item name, total availability, units sold, and profit information.
Constructors
Default Constructor
Full Parameterized Constructor
The name of the inventory item
The total number of units available in inventory
The number of units sold
The profit value for this item
Auto-Calculate Profit Constructor
(total_available - sold).
The name of the inventory item
The total number of units available in inventory
The number of units sold
Fields
The name of the inventory item
The total number of units available in inventory
The number of units sold
The profit value for this item. Can be explicitly set or auto-calculated as (total_available - sold)
Methods
getItemName()
String - The item name
getTotal_available()
int - The total available units
getSold()
int - The number of units sold
getProfit()
int - The profit value
Source Code Location
~/workspace/source/app/src/main/java/project/avishkar/salesmanagement/InventoryItem.java