I want it to be a module. This module will have a list of all “portfolio ID” (this is a field in the Debts module) in the system. You can select the portfolio you want to update and click run.
When you hit the run button it will create the list of data as csv file (will provide example) send that list to another system. Then the script will download the response from that system as csv file (will provide example) and take that data to update the database for Debts that have filed litigation (the data will go to Litigation module which relate to Debts module).
Also it will update the Debt status to litigation.
Also in the list of portfolio id's if we have already ran the script it will show the date it was ran, and an option to re run that portfolio which will only run Debts that do not have specific statuses (will provide list of statuses). For every other Debt status it would run it again.
Fields: Porfolio ID, Number of updated dedts on last pull, Date of last pull then a Pull button next to each portfolio
If already pulled once, the button should say Pull Again
On the setting we should be able to add the username and password to be used for the pull
If you click on Pull button it should create a csv file like provided sample with info of all debts that belong to the clicked Portfolio ID.
Then receive the response and save it on the Litigations module (sample of response file is provided)
To pull info you should use the username and password entered in settings with the provided url.