Credit Card Transactions Incorrectly Put Into Zoho Books Please Help Me Correct

Credit Card Transactions Incorrectly Put Into Zoho Books Please Help Me Correct

I have an 'Undeposited Cash' account set up within my Zoho software. Before I learned how to pay a customers invoice by using the link; I would use the Square Sales app on my phone to manually enter a credit card number. I would then put the entire transaction (without Square fees) into my 'Undeposited Cash' account. This would show as a transaction and then the Zoho would show another transaction in the Square Clearing Account that would be put into my 'Company Checking Account' minus Square fees. I just discovered this mistake after running a Profit and Loss Statement for the entire year. Because of these duplicative entries, my software is showing almost $40,000 more than I actually made. How do I fix this mistake?