A company using a periodic inventory system neglected to record a purchase of merchandise on account at year-end. This merchandise was omitted from the year-end physical count. How will these errors affect inventory at year-end and cost of goods sold for the year?