for each department involved actual costs incurred are debited to the applied account for that department. at the end of a period the difference between costs incurred and amounts applied represents over-or underapplied costs and it is closed to cost of goods sold or prorated to cost of goods sold and ending inventories.