Business tab: Profit and loss tab: Detail deposits

The detail deposits reflect deposits into the bank account as well as from customer payments against the invoice. This payment shows as a deposit into the Sales Activity account. This results in double counting of the deposits thereby overstating the computed profit an loss for the month. Not sure What I'm doing wrong.