buli
2022-04-15 60a9db0296617ffc71f928c46991aa3c6ddf0e83
force-app/main/default/classes/SBG200Rest.cls
@@ -390,8 +390,8 @@
   public static void deleteAccountLicenseInformation(Map<String, Account> accountMap) {
      System.debug('deleteAccountLicenseInformation--->Start');
      List<License_Information__c> existList = [select id, Name, AccountManagementCode__c
              from License_Information__c where AccountManagementCode__c In :accountMap.keySet()];
      List<License_Information__c> existList = [select id, Name, AccountManagementCode__c,Is_Active_Formula__c
              from License_Information__c where AccountManagementCode__c In :accountMap.keySet() and Is_Active_Formula__c = true];
      if (existList.size() > 0) {
         delete existList;