Hi Komal,
That is about an invoice. I closed the invoice by doing Recieve Payment and I found I incorrectly applied the payment to the invoice. I was intending to reverse the payment, but I follow the steps to reverse the sale
1) Tick "Transactions Can't be Changed. They must be reversed" under Setup>>Preferences>>Security.
2) Go to Sales Register>>All Sale tab
3) Open the invoice I incorrrectly applied the payment
4) Reverse the Sale by going to Edit>>Revese sale
When I followed your solution, the error popped out.
I wonder how to undo these.
Thanks.