1 answer
Eric Burté (DEVOTEAM) Forum Ambassador
Hello @Anvitha Shetty,
First you probably may set up all Jan_Manual_FY__c & Jan_Manual_Next_FY__c to handle null values as 0. Then the related code (if null then 0) should be optional.
Second the part checking for trimester should maybe refactored in a loop (with the start year going from current year+0 to current year+1, and inside the start month going from 1 to 12)
Hope it helps
BR
Eric