Currently we process all autopsy payments 2 days before due date & this can easily controlled using due date in FPY1.
We are exploring providing customer the option to select numbers of days (2-10days) before due day they would like their payment to be processed.We are thinking of storing the number of days selection either in custom table of adding a custom field in FKKVKP table. We are still trying to figure out how to pick up the correct account in payment run.
One approach we thought of was creating a custom program which identifies the accounts to be processed & process them in payment run. This will process payments most of the accounts correctly , however for a newly enrolled customer , if the 2 bills were created a within a gap few days, the payment run will process both the bills. We need to build additional checks in payment run to ensure only bills that satisfy number of days before due date are picked up in payment run.
I would really appreciate if you can suggest a event i can look at where we can insert custom logic.
Thanks & regards