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