GWY
2022-04-15 b823c7f3569cf9368e2245846e918f78f32e903a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public without sharing class OpportunityStageProgressBarUpdate {
  
  public static void updateProgressBar(List<Opportunity> newList, Map<Id, Opportunity> newMap, List<Opportunity> oldList, Map<Id, Opportunity> oldMap) {
    for (Opportunity newOpp : newList) {
      Opportunity oldOpp = oldMap.get(newOpp.Id);
            if (UserInfo.getUserType() != 'PowerPartner') {
                if (newOpp.Cancel_Fail_Approve__c != oldOpp.Cancel_Fail_Approve__c && newOpp.Cancel_Fail_Approve__c == 'Pass') {
                    StaticParameter.StageProgressBarUpdate = true;
                }
                
            }
    }
  }
}