Under the periodic method of accounting for inventory, when should the Inventory account be credited when recording cost of goods sold and adjusting inventory at the end of a period? "g"