updated calendar event

This commit is contained in:
Dobie Wollert
2013-05-28 03:48:54 -04:00
parent b143c71ec3
commit a5f054cbbf

View File

@ -240,7 +240,8 @@ function generateDescription(client, workorder) {
"Customer:\n" + "Customer:\n" +
" %(name)s (%(identifier)s)\n" + " %(name)s (%(identifier)s)\n" +
"\n" + "\n" +
"Phone:\n" + "Contact:\n" +
" %(contact)s\n" +
" %(phone)s\n" + " %(phone)s\n" +
"\n" + "\n" +
"Address:\n" + "Address:\n" +
@ -269,11 +270,13 @@ function generateDescription(client, workorder) {
reason: workorder.reason || '', reason: workorder.reason || '',
status: workorder.status || '', status: workorder.status || '',
remarks: workorder.remarks || '', remarks: workorder.remarks || '',
phone: '' phone: '',
contact: ''
}; };
if (client.contacts[0]) { if (client.contacts[0]) {
resources.phone = client.contacts[0].phone || ''; resources.phone = client.contacts[0].phone || '';
resources.contact = client.contacts[0].name || '';
} }
return sprintf(template, resources); return sprintf(template, resources);
@ -281,4 +284,4 @@ function generateDescription(client, workorder) {
function generateAttendees(techs) { function generateAttendees(techs) {
return techs.map(function(t) { return t.email; }); return techs.map(function(t) { return t.email; });
} }