Financial accounting

A manufacturer incurs factory depreciation while producing goods that remain in inventory at period-end. How is the cost generally treated initially?