In cash register when I saw the deposit it is going to the bank account but also staying in deposit

When I deposit my lodgement from cash register to bank account sometimes it stays in the cash deposit as a JC and it deposits to the bank account , how do I correct this when it happens?

This lodgement is in the bank but it hasn't cleared from the deposit cash