In the trial balance we record the balances on all accounts – including discounts allowed and discounts received. It is in the SOPL that we subtract them from sales and from purchases.
Have you watched my free lectures on the trial balance? The lectures are a complete free course for Paper FA and cover everything needed to be able to pass the exam well.