Hi Heli2,
It's great that you've taken the initiative and searched for a solution on your own. It sounds like what you did may be correct, but I'll share some information on cash sales with you just in case.
Typically when receiving a cash payment for something a customer bought, users will create a Sales receipt in order to record the sale. When doing this, they select the Undeposited funds account from the Deposit to dropdown menu. That way, the system knows that the cash has been received from the customer to pay for the product or service, but it hasn't been deposited into the bank yet. Once the money has been put into the bank, that's when a Bank deposit is created to tell the system that the funds are now deposited and that the cash is no longer on hand.
The reason I suggest doing it this way is that the Bank deposit function does show the money going into the company, however it doesn't create a sales transaction. To the system, the funds will be interpreted as money that's not related to a customer buying something, but money like a deposit to balance petty cash for example. I recommend checking out the following Community articles, as they go into detail about these processes and how this workflow looks from start to finish:
If you're still unsure about how this process works, please don't hesitate to reach out with any questions you may have!