Sorry for any confusion.
Which bit is confusing you, and I will try to help.
Sometimes confusion results from the terminology being used and/or the nominal accounts that are being used to record the transactions.
For example, ‘stock’ is a current asset and is shown on the balance sheet.
Sometimes there is a separate stock account, and sometimes the stock figures are effected in the purchases account.
E.g.
Purchases account could read:-
Dr Opening stock brought forward £1,000
Dr Purchases during the period £9,000
Cr Closing stock carried forward £1,500
Cr Transfer P&L - Cost of sales £8,500
Account Totals £10,000 £10,000
Dr Opening stock brought forward £1,500
In this example there is not a separate stock account. The closing stock balance of £1,500 will be shown in the balance sheet as a current asset.
On the other hand, the same result would be achieved by having a separate stock account, as follows:-
Purchases account
Dr Purchases during the period £9,000
Cr Transfer to stock account
(increase in stock from £1,000
to £1,500) £500
Cr Transfer P&L - Cost of sales £8,500
Account Totals £9,000 £9,000
Stock account
Dr Opening stock £1,000
Dr Transfer purchases
(increase in stock) £500
Cr Closing stock carried forward £1,500
Account Totals £1,500 £1,500
Dr Opening stock in new period £1,500
Again, the closing stock of £1,500 shows in the balance sheet as a current asset.
Although ‘debit’ and ‘credit’ rules are strict there is very often more than one way to ‘skin the proverbial cat’.
Understanding what is required is always better than trying to memorise how the transactions should be entered.
It is possible from your comment that you are fairly early on in your studies. If you have a senior or manager, then ask them to demonstrate by using ‘T’ accounts.
Once mastered - never forgotten!
Good luck.
P.S. I reviewed the post and the figures have not come out in columnar format. Therefore I suggest that you re-write the entries on double column paper (or in debit and credit format)(or in ‘T’ accounts) as this will make it easier to understand (and may, in fact, resolve your confusion).