In a perpetual inventory system, recording a sale on account involves crediting which of the following accounts?
A、Only sales.
B、Sales and inventory.
C、Sales and cost of goods sold.
D、Sales, inventory, and cost of goods sold.