Issues in Trail Balance

Greetings everyone,

Trying to figure what is causing the below issue.

In the above image if you notice we don’t get to see any Debits or Credits shown up and hence the opening and closing balance remains the same.

The above image is the next month trail balance sheet. But if you notice in this particular image the opening balance is different. So we are looking at two consecutive months April and May. If the closing balance of april month is so on so the opening balance of the proceeding month should be the same but we find it to be different. This is because of the debits and credits column calculation not being queried properly. We are using version-12 of erpnext. Any help on this would be much appreciated.

Thanks and Regards,
Arunachalam E