If the amount on the Profit and Loss report is different from the amount currently displayed for the Retained Earnings account, it’s possible transactions only affecting Balance Sheet accounts may have been entered against Retained Earnings account.
You can see these user-created transactions on the account Quick Report directly from the Chart of Accounts.
Go to Settings ⚙, then select Chart of Accounts.
1) Locate the Retained Earnings account.
2) From the Action column drop-down menu, select Run Report.
3) From the Report period drop-down list, select All Dates.
4) Select Run report.
The report displays any user-created transactions affecting the Retained Earnings account figure.
Normally, this type of ‘only affecting balance sheets accounts’ transaction should not happen except for earnings distribution from Retained Earnings account category. All other transactions should go through the Income and Expense accounts.