{{##def.renderWeekTotal:dayRange: {{ var sum = { availabilityTime: 0, drivingTime: 0, restTime: 0,workingTime: 0 }; }} {{ for(var i = dayRange[0];i < dayRange[1];i++) { }} {{ var currentItem = list[i]; }} {{ sum.availabilityTime += currentItem.availabilityTime; }} {{ sum.drivingTime += currentItem.drivingTime; }} {{ sum.restTime += currentItem.restTime; }} {{ sum.workingTime += currentItem.workingTime; }} {{ } }}
Mon | Tue | Wed | Thu | Fri | Sat | Sun | Week Total |
---|---|---|---|---|---|---|---|
{{=$.datepicker.formatDate("dd" , new Date(currentItem.date))}}
|
{{ } }}
{{#def.renderWeekTotal:{0:0,1:7} }}
|
||||||
{{=$.datepicker.formatDate("dd" , new Date(list[i].date))}}
|
{{ } }}
|