Payment Selection (Manual) creates Payment Selection records even if user clicks cancel button on the pop up dialog which asks "Generate Payments from Payment Selection".
Currently implementation is, when process button is clicked, Payment Selection records is created and why ok button pop up dialog is clicked, that prepare payment process is executed on that payment selection records.
But for the end user, they click on the process and clicks on cancel, they assumes nothing should happens whereas system created payment selection records.
My suggestion is to have one checkbox in the dialog say "Prepare Payment" and user checks the checkbox they want to prepare payment, if they dont check it and clicks ok then only creates payment selection record. If they click cancel then nothing should happen