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