Inventory values are calculated on average pricing formula.
To account for inventory, the inventory setting must be checked.. This setting determines whether to include inventory values towards profit and loss as well as the balance sheet reports.
Inventory Movement 
Inventory Adjustment
Adjustment in inventory can be done to account for errors in receipt of goods as well as account for loss of inventory due to theft or human error.