Hello and welcome to the Community, Trebalisa
We're unable to advise on the specific accounts to debit or credit and recommend working alongside your accountant for best advice. If you don't already have an accountant, you can find a QuickBooks certified advisor near you on our online directory.
For further support, you can also check out our guide on how to View Retained Earnings account details in QuickBooks Online. We'll be here if you have any additional queries.