Answer:
a) October 12
Dr Purchases 23,030
Cr Accounts payable 23,030
Dr Freight charges 510
Cr Cash 510
October 31
Dr Accounts payable 23,030
Dr Purchase discount lost 470
Cr Cash 23,500
October
Dr Accounts receivable 28,200
Cr Sales 28,200
October 31
Dr Cost of goods sold 17,150
Dr Inventory 21,390
Cr Purchases 23,030
Cr Inventory 15,000
Cr Freight charges 510
b) October 12
Dr Inventory 23,540
Cr Accounts payable 23,030
Cr Cash 510
October 31
Dr Accounts payable 23,030
Dr Inventory lost 470
Cr Cash 23,500
October
Dr Accounts receivable 28,200
Cr Sales 28,200
October 31
Dr Cost of goods sold 17,150
Cr Inventory 17,150