Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if('{!Opportunity.Commitment_Type__c}' == 'Portfolio'){
- if('{!CONTAINS(Opportunity.RecordTypeId,$Label.ENT_CommitRT_ID)}'){
- window.open('/apex/VF_opportunityProductEntry?id={!Opportunity.Id}')
- }
- }
- else if('{!CONTAINS(Opportunity.RecordTypeName_ENT__c,"Premier")}'){
- if(window.location.href.indexOf("premierreseller") > -1){
- window.open('/premierreseller/apex/opportunityProductEntry?id={!Opportunity.Id}')
- }
- else {
- window.open('/apex/opportunityProductEntry?id={!Opportunity.Id}')
- }
- }
- else if(window.location.href.indexOf("premierreseller") > -1){
- window.open('/premierreseller/p/opp/SelectSearch?addTo={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}')
- }
- else if('{!CONTAINS(Opportunity.RecordTypeId,$Label.ENT_ExclusiveRT_ID)}'){
- window.open('/apex/opportunityProductEntry_Exclusive?id={!Opportunity.Id}')
- }
- else{
- window.open('/p/opp/SelectSearch?addTo={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}')
- }
Add Comment
Please, Sign In to add comment