mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
updated calendar event
This commit is contained in:
@ -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; });
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user