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" +
|
"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; });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user