Script report: Frappe ERPNext version 14- Row selection issue

I’m facing an issue related to the payment approval process. By default, after approving a payment, the system automatically selects the next set of rows, causing confusion for our workflow. We want to modify this behavior to prevent the automatic selection of the next rows after payment approval.

Looking for suggestions on how to prevent the automatic selection of rows or any relevant documentation or examples.
Thank you.