Which of the following is not affected by an error related to ending inventory?
a. Cost of goods sold.
b. Gross profit
c. Sales
d. Current assets
e. Net income