Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTMLBody = HTMLBody + 'Please print off a copy and hand to the Trainer on the morning of the course.<br><br>';
- HTMLBody = HTMLBody + 'If you have any questions please don't hesitate to contact our Customer Service Team on 1-800-374-3818.<br><br>';
- HTMLBody = HTMLBody + 'Kind Regards,<br>Training and Improvement Solutions<br><br>';
- HTMLBody = HTMLBody + '<b><u>Course Information</u></b><br><br>';
- if(classObj.Class_End_Date__c != null)**{
- HTMLBody = HTMLBody + 'Course Name: ' + classObj.Course_Name__r.Name + '<br>' + 'Current Revision:' + crs.Current_Revision__c.format() + '<br>' + 'Class Dates: ' + classObj.Class_Begin_Date__c.day() + '/' + classObj.Class_Begin_Date__c.month() + '/' + classObj.Class_Begin_Date__c.year() + ' - ' + classObj.Class_End_Date__c.day() + '/' + classObj.Class_End_Date__c.month() + '/' + classObj.Class_End_Date__c.year() + '<br>';
- }** else {
- HTMLBody = HTMLBody + 'Course Name: ' + classObj.Course_Name__r.Name + '<br>' + 'Current Revision:' + crs.Current_Revision__c.format() + '<br>' + 'Class Dates: ' + classObj.Class_Begin_Date__c.day() + '/' + classObj.Class_Begin_Date__c.month() + '/' + classObj.Class_Begin_Date__c.year() + ' - N/A<br>';
- }
- HTMLBody = HTMLBody + 'Class Location: ' + classObj.Class_Location__c + '<br><br>';
- HTMLBody = HTMLBody + '<b><u>Venue Details</u></b><br><br>';
- HTMLBody = HTMLBody + classObj.Venue__r.Name + '<br>';
Add Comment
Please, Sign In to add comment