I would use data file display and maintenance to check the average cost show on the screen against what is in the IM_ItemWarehouse table at the time of (or right before) invoicing the item.
when you are manually adding it and seeing the correct cost have you put a quantity in? is Job cost involved?