| | |
| | | //跳过点检标记 2021/07/28 gzw start |
| | | , Skip_DJ__c |
| | | //跳过点检标记 2021/07/28 gzw start |
| | | |
| | | //WLIG-CDFBV3 开通续签报价为true的可以开放续签报价 thh 20220419 start |
| | | , Maintenance_Contract__r.Open_RenewalQuotation__c |
| | | //WLIG-CDFBV3 开通续签报价为true的可以开放续签报价 thh 20220419 end |
| | | FROM Maintenance_Contract_Estimate__c WHERE Id = :this.targetEstimateId]; |
| | | //HWAG-B399Q8 2018/08/20 添加一额外字段 IS_Clone_After_Decide__c end |
| | | decimal PriceSum = (this.estimate.Maintenance_Contract__r.Payment_Plan_Sum_First__c == null ? 0 : this.estimate.Maintenance_Contract__r.Payment_Plan_Sum_First__c) + |
| | |
| | | t = this.estimate.Contract_Start_Date__c.addMonths(Integer.valueOf(this.estimate.Contract_Range__c)); |
| | | t = t.addDays(-1); |
| | | this.estimate.Contract_End_Date__c = t; |
| | | //以提交报价的时点,锁定经销商的先款状态,decide时不再更新经销商的性质 thh 20220407 start |
| | | //add wangweipeng 2021/12/26 start |
| | | // if(String.isNotBlank(this.estimate.Dealer__c)){ |
| | | // checkDealerId = this.estimate.Dealer__c; |
| | | // onChDealerUpdate(); |
| | | // }else{ |
| | | // this.estimate.Is_RecognitionModel__c = false; |
| | | // } |
| | | //add wangweipeng 2021/12/26 end |
| | | //以提交报价的时点,锁定经销商的先款状态,decide时不再更新经销商的性质 thh 20220407 end |
| | | //提交之后decide之前,经销商变更的话,先款信息以变更后的经销商先款信息执行 thh 20220418 start |
| | | // add wangweipeng 2021/12/26 start |
| | | if(String.isNotBlank(this.estimate.Dealer__c)){ |
| | | checkDealerId = this.estimate.Dealer__c; |
| | | onChDealerUpdate(); |
| | | }else{ |
| | | this.estimate.Is_RecognitionModel__c = false; |
| | | } |
| | | // add wangweipeng 2021/12/26 end |
| | | //提交之后decide之前,经销商变更的话,先款信息以变更后的经销商先款信息执行 thh 20220418 end |
| | | System.debug('---------345----'+this.estimate.Dealer__c+'-------'+this.estimate.Dealer__r.FirstParagraphEnd__c); |
| | | // 位置调整 在1951 line |
| | | // Date createdDate = this.estimate.CreatedDate == null ? System.today() : this.estimate.CreatedDate.date(); |