For invoices eligible for late fees, you can schedule a batch job to apply late fees automatically.
To schedule the Late Fee Batch Job,
- Go to Setup → Apex Classes.
- Click Schedule Apex.
- Enter a Job Name and select ApplyLateFeeScheduleJob from the Apex Class lookup.
- Set Weekly frequency and select all days to run the batch job daily.
- Enter Start Date, End Date and Preferred Start Time.
- Click Save.
Your late fee batch job is now scheduled to run daily.