{$forms.reportForm.open}
{$i18n.form.report.export} XML {$i18n.label.or} CSV
{if $bean->getAttribute('chtotalsonly')} {if $bean->getAttribute('chduration')}{/if} {if $bean->getAttribute('chcost')}{/if} {foreach $subtotals as $subtotal} {if $bean->getAttribute('chduration')}{/if} {if $bean->getAttribute('chcost')}{/if} {/foreach} {if $bean->getAttribute('chduration')}{/if} {if $bean->getAttribute('chcost')}{/if} {else} {if $user->canManageTeam() || $user->isClient()}{/if} {if $bean->getAttribute('chclient')}{/if} {if $bean->getAttribute('chproject')}{/if} {if $bean->getAttribute('chtask')}{/if} {if $bean->getAttribute('chcf_1')}{/if} {if $bean->getAttribute('chstart')}{/if} {if $bean->getAttribute('chfinish')}{/if} {if $bean->getAttribute('chduration')}{/if} {if $bean->getAttribute('chnote')}{/if} {if $bean->getAttribute('chcost')}{/if} {if $bean->getAttribute('chinvoice')}{/if} {foreach $report_items as $item} {$cur_date = $item.date} {if $print_subtotals} {$cur_grouped_by = $item.grouped_by} {if $cur_grouped_by != $prev_grouped_by && !$first_pass} {/if}{/if} {if $bean->getAttribute('chclient')}{/if}{/if} {if $bean->getAttribute('chproject')}{/if}{/if} {if $bean->getAttribute('chtask')}{/if}{/if} {if $bean->getAttribute('chcf_1')}{/if}{/if} {if $bean->getAttribute('chstart')}{/if} {if $bean->getAttribute('chfinish')}{/if} {if $bean->getAttribute('chduration')}{/if} {if $bean->getAttribute('chnote')}{/if} {if $bean->getAttribute('chcost')}{/if} {if $bean->getAttribute('chinvoice')}{/if} {/if} {$first_pass = false} {/if} {if $cur_date != $prev_date} {if $report_row_class == 'rowReportItem'} {$report_row_class = 'rowReportItemAlt'} {else} {$report_row_class = 'rowReportItem'} {/if} {/if} {if $user->canManageTeam() || $user->isClient()}{/if} {if $bean->getAttribute('chclient')}{/if} {if $bean->getAttribute('chproject')}{/if} {if $bean->getAttribute('chtask')}{/if} {if $bean->getAttribute('chcf_1')}{/if} {if $bean->getAttribute('chstart')}{/if} {if $bean->getAttribute('chfinish')}{/if} {if $bean->getAttribute('chduration')}{/if} {if $bean->getAttribute('chnote')}{/if} {if $bean->getAttribute('chcost')}{/if} {if $bean->getAttribute('chinvoice')} {if $use_checkboxes} {if 1 == $item.type}{/if} {if 2 == $item.type}{/if} {/if} {/if} {$prev_date = $item.date} {if $print_subtotals} {$prev_grouped_by = $item.grouped_by} {/if} {/foreach} {if $print_subtotals} {/if}{/if} {if $bean->getAttribute('chclient')}{/if}{/if} {if $bean->getAttribute('chproject')}{/if}{/if} {if $bean->getAttribute('chtask')}{/if}{/if} {if $bean->getAttribute('chcf_1')}{/if}{/if} {if $bean->getAttribute('chstart')}{/if} {if $bean->getAttribute('chfinish')}{/if} {if $bean->getAttribute('chduration')}{/if} {if $bean->getAttribute('chnote')}{/if} {if $bean->getAttribute('chcost')}{/if} {if $bean->getAttribute('chinvoice')}{/if} {/if} {if $user->canManageTeam() || $user->isClient()}{/if} {if $bean->getAttribute('chclient')}{/if} {if $bean->getAttribute('chproject')}{/if} {if $bean->getAttribute('chtask')}{/if} {if $bean->getAttribute('chcf_1')}{/if} {if $bean->getAttribute('chstart')}{/if} {if $bean->getAttribute('chfinish')}{/if} {if $bean->getAttribute('chduration')}{/if} {if $bean->getAttribute('chnote')}{/if} {if $bean->getAttribute('chcost')}{/if} {if $bean->getAttribute('chinvoice')}{/if} {/if}
{$group_by_header|escape:'html'}{$i18n.label.duration}{$i18n.label.cost}
{if $subtotal['name']}{$subtotal['name']|escape:'html'}{else} {/if}{$subtotal['time']}{if $user->canManageTeam() || $user->isClient()}{$subtotal['cost']}{else}{$subtotal['expenses']}{/if}
 
{$i18n.label.total}{$totals['time']}{$user->currency|escape:'html'} {if $user->canManageTeam() || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if}
{$i18n.label.date}{$i18n.label.user}{$i18n.label.client}{$i18n.label.project}{$i18n.label.task}{$custom_fields->fields[0]['label']|escape:'html'}{$i18n.label.start}{$i18n.label.finish}{$i18n.label.duration}{$i18n.label.note}{$i18n.label.cost}{$i18n.label.invoice}
{$i18n.label.subtotal} {if $user->canManageTeam() || $user->isClient()}{if $group_by == 'user'}{$subtotals[$prev_grouped_by]['name']|escape:'html'}{if $group_by == 'client'}{$subtotals[$prev_grouped_by]['name']|escape:'html'}{if $group_by == 'project'}{$subtotals[$prev_grouped_by]['name']|escape:'html'}{if $group_by == 'task'}{$subtotals[$prev_grouped_by]['name']|escape:'html'}{if $group_by == 'cf_1'}{$subtotals[$prev_grouped_by]['name']|escape:'html'}{$subtotals[$prev_grouped_by]['time']}{if $user->canManageTeam() || $user->isClient()}{$subtotals[$prev_grouped_by]['cost']}{else}{$subtotals[$prev_grouped_by]['expenses']}{/if}
 
{$item.date}{$item.user|escape:'html'}{$item.client|escape:'html'}{$item.project|escape:'html'}{$item.task|escape:'html'}{$item.cf_1|escape:'html'}{$item.start}{$item.finish}{$item.duration}{$item.note|escape:'html'}{if $user->canManageTeam() || $user->isClient()}{$item.cost}{else}{$item.expense}{/if}{$item.invoice|escape:'html'}
{$i18n.label.subtotal} {if $user->canManageTeam() || $user->isClient()}{if $group_by == 'user'}{$subtotals[$cur_grouped_by]['name']|escape:'html'}{if $group_by == 'client'}{$subtotals[$cur_grouped_by]['name']|escape:'html'}{if $group_by == 'project'}{$subtotals[$cur_grouped_by]['name']|escape:'html'}{if $group_by == 'task'}{$subtotals[$cur_grouped_by]['name']|escape:'html'}{if $group_by == 'cf_1'}{$subtotals[$cur_grouped_by]['name']|escape:'html'}{$subtotals[$cur_grouped_by]['time']}{if $user->canManageTeam() || $user->isClient()}{$subtotals[$cur_grouped_by]['cost']}{else}{$subtotals[$cur_grouped_by]['expenses']}{/if}
 
{$i18n.label.total}{$totals['time']}{$user->currency|escape:'html'} {if $user->canManageTeam() || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if}
{if $use_checkboxes && $report_items}
{$forms.reportForm.recent_invoice.control} {$forms.reportForm.btn_submit.control}
{/if} {$forms.reportForm.close}