This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!REQUIRESCRIPT("/soap/ajax/41.0/connection.js")} | |
var industry = '{!JSENCODE(Lead.Industry)}'; | |
var annualrevenue = '{!JSENCODE(Lead.AnnualRevenue)}'; | |
if (industry == '' || annualrevenue == '' ){ | |
alert('Reminder: Please ensure the Industry and Annual Revenue fields are completed before you convert this lead.'); | |
} | |
else{ | |
window.parent.location.href="lead/leadconvert.jsp?retURL=%2F"+'{!Lead.Id}'+"&id="+'{!Lead.Id}'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IsTest | |
private class AssetTriggerHandlerTest | |
{ | |
@testSetup | |
static void setup() | |
{ | |
Account a = new Account(Name = 'Test Account'); | |
insert a; | |
List<Product2> prods = new List<Product2>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest(SeeAllData=true) | |
private class BillingScheduleTest{ | |
/* @testSetup static void TestBillingSchedule(){ | |
Account objAccount = new Account(); | |
objAccount.Name = 'TestAccount'; | |
objAccount.Phone = '1234567890'; | |
objAccount.CurrencyIsoCode ='USD'; | |
insert objAccount; | |