I need to edit deposits and want to make it sales receipt instead. How can i do with without deleting the transaction.

There is no way to switch transaction from deposit to create sales receipt. Delete entered deposit Create new Sales Receipt