Upgrade Task for CL Loan 2.2003
Customers upgrading to CL Loan 2.2003 must run the migration script by scheduling the MarkUnPaidBillsAfterUpgrade job as the first step, before running the SOD jobs on the new CL Loan version.
When customers upgrade to CL Loan 2.2003, no late charges would be generated for the loans that would become delinquent on the migration date. This happens because, upon migration, the checkbox Unpaid Bills that is added to the CL Contract page layout, is deselected by default. Users must run the migration script to by run the MarkUnPaidBillsAfterUpgrade job to mark this checkbox as selected for relevant contracts, before scheduling the SOD jobs, and before the late charge creation job runs.
Perform the following steps to execute the job and mark the unpaid bills:
- Log in to your Salesforce account.
- Click your profile name on the top right of the page, and click Developer Console.
- Click Debug > Open Execute Anonymous Window.
Paste the following code, replace "yyyy, mm, dd' with the current system date values, and click Execute.
Date systemDate = Date.newInstance(yyyy, mm, dd);
loan.MarkUnPaidBillsAfterUpgrade job = new loan.MarkUnPaidBillsAfterUpgrade(systemDate, False);
Database.executeBatch(job);Close the Developer Console window.