123
chenjingwu
2024-04-16 033fb422e2079c240af6824dac436f27f3ee8b05
force-app/main/default/classes/lexNewQuoteEntryController.cls
@@ -269,7 +269,7 @@
    for(String id: idList){
      List<OptionTemplete> optionTempleteList = new List<OptionTemplete>();
      optionTempleteList.add(new OptionTemplete('0年','0'));
      for(MultiYearWarranty__c mus: priceMap.get(id)){
      for(MultiYearWarranty__c mu: priceMap.get(id)){
        optionTempleteList.add(new OptionTemplete((mu.AgeLimit__c + 1) + '年',(mu.AgeLimit__c + 1) + ''));
      }
      optionMap.put(id,optionTempleteList);
@@ -2985,6 +2985,9 @@
                this.exPrice = mu.MultiOneYearWarrantyPrice__c;
              }
            }
          }else{
              this.Learning_Community = 0 + '';
              this.exPrice = 0;
          }
          if(period > 0){
            List<OptionTemplete> optionTempleteList = new List<OptionTemplete>();
@@ -2996,6 +2999,11 @@
            //   optionTempleteList.add(new OptionTemplete((j + 1) + '年',(j + 1) + ''));
            // }
            this.Learning_CommunityOptions = optionTempleteList;
          }
          if(this.Learning_Community == '0' && this.Learning_CommunityOptions.size() > 1){
            this.Learning_Community = this.multiYearWarrantyList.get(this.multiYearWarrantyList.size() - 1).AgeLimit__c;
            this.exPrice = this.multiYearWarrantyList.get(this.multiYearWarrantyList.size() - 1).MultiOneYearWarrantyPrice__c;
          }
          
          // this.ExtendedWarrantyPeriod = new WarrantyPeriod(optionTempleteList,'');