Answer:
The Journal entry are as follows:
(i) On January 2, 2017
Accounts receivable A/c Dr. $381,000
To Sales revenue $342,000
To unearned service revenue $39,000
(To record the sale of goods)
(ii) On January 2, 2017
Cost of goods sold A/c Dr. $293,000
To Inventory A/c $293,000
(To record the cost of goods sold)