Added first name initial of customer in table calendar view.

This commit is contained in:
alext 2016-11-06 12:30:38 +01:00
parent 54ef4e34c2
commit fad8d3630c

View file

@ -670,7 +670,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
var eventDuration = Math.round((endDate - startDate) / 60000);
$event.html(
appointment.customer.last_name +
appointment.customer.first_name.charAt(0) + '. ' + appointment.customer.last_name +
' <span class="hour">' + startDate.toString('HH:mm') + '</span> '
+ (eventDuration !== parseInt(appointment.service.duration) ? '(' + eventDuration + '\')' : '')
);