When perpetual inventory is maintained, the cost of goods sold is recorded by a journal entry in which a credit is made to the