Negative expenses in profit or loss account

I imported expenses for a whole year on erpnext. When I checked the profit or loss account they were all negative making the sales to add to the expenses instead of subtract (sales -(-expenses ) and giving a false profit figure. Please how do I fix this?

Co asks? Anyone with a solution to this?

Hi guys, I met the same problem in the ERPnext.
I submitted an issue to the Github repo.
You can see it here:
https://github.com/frappe/erpnext/issues/31511