An item can have 0 quantity but a remaining value if it is an item that is set up with an Average Perpetual valuation method. Using this method an item is brought into Inventory at the actual cost, however when it is sold it goes out of inventory at the average cost. If costs fluctuate, there is the potential that when you have sold all of your quantities that a value will still remain.
Here is an example of how this would happen.
1. Create an item with an Average Perpetual valuation method.
2. Enter and post the following increase adjustments for the same item using the same date.
5 @ $35 = total cost of $175
10 @ $20 = total cost of $200
22 @ $23 = total cost of $506
At this point the HITB report would show that you have Quantity of 37 and Value of $881.
3. The next day sell all 37 of the item. These would be sold at the average cost of $23.81 each for a total of $880.97.
When you print the HITB report, you will see Quantity of 0 and Value of $0.03.
4. If you review the value of the inventory account in General Ledger, you will see there is also a $0.03 value related to this item there as well. This is because Step 2 debited Inventory for $881 and Step 3 credited Inventory for $880.97.