| | |
| | | /** |
| | | * @description : |
| | | * @author : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | * @group : |
| | | * @last modified on : 04-08-2022 |
| | | * @last modified by : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | **/ |
| | | public with sharing class IENewOpportunityController { |
| | | public boolean hasError { get; set; } |
| | | //public boolean isDealerPage { get; set; } |
| | |
| | | opp.compo_opp__c = true; |
| | | } |
| | | opp.AccountId = acc.Id; |
| | | opp.Name = acc.Name;//dennis updated for test |
| | | opp.Account = acc; |
| | | opp.ProductSegment__c = acc.ProductSegment__c; |
| | | opp.Type = 'Not Traget'; |
| | |
| | | |
| | | Savepoint sp = Database.setSavepoint(); |
| | | try { |
| | | //0120K000000OptT正式环境 |
| | | //0120T0000003Ser测试环境 |
| | | opp.RecordTypeId = '0120T0000003Ser'; |
| | | opp.RecordTypeId = '0120K000000OptT'; |
| | | opp.SalesChannel__c = 'direct'; |
| | | insert opp; |
| | | if(opp.Have_Computer__c && opp.Association_Opportunity__c != null){ |