Hi Mani,
The Record deletion logic not correct because ur screenshot shows that there can be duplicate record for same sr.no & invoice number. So, ur logic can delete the correct entry as well.
Do you have record creation date and time field in given table?
Regards,
Sudeesh Soni