[#if tripsreport.dateIntervalStart??] [#if tripsreport.dateIntervalEnd??] ${tripsreport.dateIntervalStart?date} - ${tripsreport.dateIntervalEnd?date} [#else] After ${tripsreport.dateIntervalStart?date} [/#if] [#else] [#if tripsreport.dateIntervalEnd??] Before ${tripsreport.dateIntervalEnd?date} [#else] All dates [/#if] [/#if]
[#if tripsreport.trips?size == 0]
There is no data available for the selected report settings.
[#else]
Description |
Date |
Distance |
Total |
---|---|---|---|
[#list tripsreport.groupClients(tripsreport.trips)?sort as client] [#assign clientTrips=tripsreport.filterByClient(tripsreport.trips, client)] | |||
${client.name} |
|||
[#list tripsreport.groupProjects(clientTrips)?sort as project] [#assign projectTrips=tripsreport.filterByProject(clientTrips, project)] | |||
${project.name} |
${tripsreport.calculateDistance(projectTrips)} |
${tripsreport.calculateTotal(projectTrips)} |
|
[#list projectTrips?sort_by("startTime") as trip] | |||
${trip.description} |
${trip.startTime?date} |
${trip.distance} |
${trip.total} |
[/#list] | |||
[/#list] | |||
Subtotal for ${client.name} |
${tripsreport.calculateDistance(clientTrips)} |
${tripsreport.calculateTotal(clientTrips)} |
|
[/#list] | |||
Total |
${tripsreport.calculateDistance(tripsreport.trips)} |
${tripsreport.calculateTotal(tripsreport.trips)} |
[/#if]