Hi @ashu123 , thanks for posting here!
In your situation, I think you need to contact to support development team of the app you are using for “Buy X for Y amount” discount feature in your store. They can further solve and fix your issues easier because the bug can come from the app you use!!!