Understanding inventory recalculation and closing