- <tr>
- <td class="tableHeader">{$i18n.label.date}</td>
- <td class="tableHeader">{$i18n.form.invoice.person}</td>
- {if $show_project}
- <td class="tableHeader">{$i18n.label.project}</td>
- {/if}
- {if $show_task}
- <td class="tableHeader">{$i18n.label.task}</td>
- {/if}
- <td class="tableHeader">{$i18n.label.note}</td>
- <td class="tableHeaderCentered" width="5%">{$i18n.label.duration}</td>
- <td class="tableHeaderCentered" width="5%">{$i18n.label.cost}</td>
- {if $user->isPluginEnabled('ps')}
- <td class="tableHeader">{$i18n.label.paid}</td>
- {/if}
- </tr>
- {foreach $invoice_items as $invoice_item}
- <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
- <td valign="top">{$invoice_item.date}</td>
- <td valign="top">{$invoice_item.user_name|escape}</td>
- {if $show_project}
- <td valign="top">{$invoice_item.project_name|escape}</td>
- {/if}
- {if $show_task}
- <td valign="top">{$invoice_item.task_name|escape}</td>
- {/if}
- <td valign="top">{$invoice_item.note|escape}</td>
- <td align="right" valign="top">{$invoice_item.duration}</td>
- <td align="right" valign="top">{$invoice_item.cost}</td>
- {if $user->isPluginEnabled('ps')}
- <td align="right" valign="top">{if $invoice_item.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
- {/if}
- </tr>
+ <tr>
+ <td class="tableHeader">{$group_by_header|escape}</td>
+ <td class="tableHeaderCentered" width="5%">{$i18n.label.duration}</td>
+ </tr>
+ {foreach $subtotals as $subtotal}
+ <tr class="rowReportSubtotal">
+ <td class="cellLeftAlignedSubtotal">{if $subtotal['name']}{$subtotal['name']|escape}{else} {/if}</td>
+ <td class="cellRightAlignedSubtotal">{$subtotal['time']}</td>
+ </tr>