Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
5.4 kB
2
Indexable
Never

// /*this fucntion is to notice the employee the he/shr check in after 11*/
getuserrecord = zoho.people.getRecordByID("employee",erecno.toLong());
reporting_to_mail_id = getuserrecord.get("Reporting_To.MailID");
expfrmtime = attndnceDay + " " + "10:50:00";
time = frmtime.getSuffix(attndnceDay);
lstindx = time.lastIndexOf(":");
mail_time = time.subString(0,lstindx);
if(frmtime.toTime() > expfrmtime.toTime())
{
time = frmtime.getSuffix(attndnceDay);
lstindx = time.lastIndexOf(":");
mail_time = time.subString(0,lstindx);
sendmail
[
	from :zoho.adminuserid
	to :empMailid,reporting_to_mail_id,"peopleops+late@kraftpixel.com"
	subject :"Late Check-in Alert: " + fname
	message :"<div style='color: rgb(51, 51, 51); font-family: ProximaNovaRegular, Arial, Helvetica, sans-serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: 0.14000000059604645px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small;'><span class='font' style='font-family:monospace, monospace'><span class='colour' style='color:rgb(0, 0, 0)'>Hi&nbsp;" + fname + ",</span></span><span class='colour' style='color:rgb(0, 0, 0)'></span><br></div><div style='color: rgb(51, 51, 51); font-family: ProximaNovaRegular, Arial, Helvetica, sans-serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: 0.14000000059604645px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small;'><span class='colour' style='color:rgb(0, 0, 0)'></span><br></div><div style='color: rgb(51, 51, 51); font-family: ProximaNovaRegular, Arial, Helvetica, sans-serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: 0.14000000059604645px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small;'><span class='font' style='font-family:monospace, monospace'><span class='colour' style='color:rgb(0, 0, 0)'>This is to keep you informed that you have checked-in to the office at " + mail_time + "&nbsp;today, the regular office hours are 10:15 am to 06:45 pm.&nbsp;</span></span><span class='colour' style='color:rgb(0, 0, 0)'></span><br></div><div style='color: rgb(51, 51, 51); font-family: ProximaNovaRegular, Arial, Helvetica, sans-serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: 0.14000000059604645px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small;'><span class='colour' style='color:rgb(0, 0, 0)'></span><br></div><div style='color: rgb(51, 51, 51); font-family: ProximaNovaRegular, Arial, Helvetica, sans-serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: 0.14000000059604645px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small;'><span class='font' style='font-family:monospace, monospace'><span class='colour' style='color:rgb(0, 0, 0)'>We encourage you to show up  as per the office hours. Your cooperation helps us build a healthy and disciplined work culture.</span></span><span class='colour' style='color:rgb(0, 0, 0)'></span><br></div><div style='color: rgb(51, 51, 51); font-family: ProximaNovaRegular, Arial, Helvetica, sans-serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: 0.14000000059604645px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small;'><span class='colour' style='color:rgb(0, 0, 0)'></span><br></div><div style='color: rgb(51, 51, 51); font-family: ProximaNovaRegular, Arial, Helvetica, sans-serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: 0.14000000059604645px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small;'><span class='font' style='font-family:monospace, monospace'><span class='colour' style='color:rgb(0, 0, 0)'>Regards,</span></span><span class='colour' style='color:rgb(0, 0, 0)'></span><br></div><div style='color: rgb(51, 51, 51); font-family: ProximaNovaRegular, Arial, Helvetica, sans-serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: 0.14000000059604645px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small;'><span class='font' style='font-family:monospace, monospace'><span class='colour' style='color:rgb(0, 0, 0)'>PeopleOps (HR)</span></span><br></div>"
]
}