{$forms.reportViewForm.open}
{$i18n.form.report.export} {if file_exists('WEB-INF/lib/tcpdf')}
PDF
,{/if}
XML
{$i18n.label.or}
CSV
{if $bean->getAttribute('chtotalsonly')}
{$group_by_header|escape}
{if $bean->getAttribute('chduration')}
{$i18n.label.duration}
{/if} {if $bean->getAttribute('chunits')}
{$i18n.label.work_units_short}
{/if} {if $bean->getAttribute('chcost')}
{$i18n.label.cost}
{/if}
{foreach $subtotals as $subtotal}
{if $subtotal['name']}{$subtotal['name']|escape}{else} {/if}
{if $bean->getAttribute('chduration')}
{$subtotal['time']}
{/if} {if $bean->getAttribute('chunits')}
{$subtotal['units']}
{/if} {if $bean->getAttribute('chcost')}
{if $user->can('manage_invoices') || $user->isClient()}{$subtotal['cost']}{else}{$subtotal['expenses']}{/if}
{/if}
{/foreach}
{$i18n.label.total}
{if $bean->getAttribute('chduration')}
{$totals['time']}
{/if} {if $bean->getAttribute('chunits')}
{$totals['units']}
{/if} {if $bean->getAttribute('chcost')}
{$user->currency|escape} {if $user->can('manage_invoices') || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if}
{/if}
{else}
{$i18n.label.date}
{if $user->can('view_reports') || $user->can('view_all_reports') || $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}
{/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('chunits')}
{$i18n.label.work_units_short}
{/if} {if $bean->getAttribute('chcost')}
{$i18n.label.cost}
{/if} {if $bean->getAttribute('chapproved')}
{$i18n.label.approved}
{/if} {if $bean->getAttribute('chpaid')}
{$i18n.label.paid}
{/if} {if $bean->getAttribute('chip')}
{$i18n.label.ip}
{/if} {if $bean->getAttribute('chinvoice')}
{$i18n.label.invoice}
{/if} {if $bean->getAttribute('chtimesheet')}
{$i18n.label.timesheet}
{/if} {if $bean->getAttribute('chfiles')}
{/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->can('view_reports') || $user->can('view_all_reports') || $user->isClient()}
{$subtotals[$prev_grouped_by]['user']|escape}
{/if} {if $bean->getAttribute('chclient')}
{$subtotals[$prev_grouped_by]['client']|escape}
{/if} {if $bean->getAttribute('chproject')}
{$subtotals[$prev_grouped_by]['project']|escape}
{/if} {if $bean->getAttribute('chtask')}
{$subtotals[$prev_grouped_by]['task']|escape}
{/if} {if $bean->getAttribute('chcf_1')}
{$subtotals[$prev_grouped_by]['cf_1']|escape}
{/if} {if $bean->getAttribute('chstart')}
{/if} {if $bean->getAttribute('chfinish')}
{/if} {if $bean->getAttribute('chduration')}
{$subtotals[$prev_grouped_by]['time']}
{/if} {if $bean->getAttribute('chunits')}
{$subtotals[$prev_grouped_by]['units']}
{/if} {if $bean->getAttribute('chcost')}
{if $user->can('manage_invoices') || $user->isClient()}{$subtotals[$prev_grouped_by]['cost']}{else}{$subtotals[$prev_grouped_by]['expenses']}{/if}
{/if} {if $bean->getAttribute('chapproved')}
{/if} {if $bean->getAttribute('chpaid')}
{/if} {if $bean->getAttribute('chip')}
{/if} {if $bean->getAttribute('chinvoice')}
{/if} {if $bean->getAttribute('chtimesheet')}
{/if} {if $bean->getAttribute('chfiles')}
{/if} {if $use_checkboxes}
{/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->can('view_reports') || $user->can('view_all_reports') || $user->isClient()}
{$item.user|escape}
{/if} {if $bean->getAttribute('chclient')}
{$item.client|escape}
{/if} {if $bean->getAttribute('chproject')}
{$item.project|escape}
{/if} {if $bean->getAttribute('chtask')}
{$item.task|escape}
{/if} {if $bean->getAttribute('chcf_1')}
{$item.cf_1|escape}
{/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('chunits')}
{$item.units}
{/if} {if $bean->getAttribute('chcost')}
{if $user->can('manage_invoices') || $user->isClient()}{$item.cost}{else}{$item.expense}{/if}
{/if} {if $bean->getAttribute('chapproved')}
{if $item.approved == 1}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{/if} {if $bean->getAttribute('chpaid')}
{if $item.paid == 1}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{/if} {if $bean->getAttribute('chip')}
{if $item.modified}{$item.modified_ip} {$item.modified}{else}{$item.created_ip} {$item.created}{/if}{/if} {if $bean->getAttribute('chinvoice')}
{$item.invoice|escape}
{/if} {if $bean->getAttribute('chtimesheet')}
{$item.timesheet_name|escape}
{/if} {if $bean->getAttribute('chfiles')}
{if $item.has_files}
{/if}
{/if} {if $use_checkboxes} {if 1 == $item.type}
{/if} {if 2 == $item.type}
{/if} {/if}
{if $bean->getAttribute('chnote') && $item.note}
{$i18n.label.note}:
{$item.note|escape}
{/if} {$prev_date = $item.date} {if $print_subtotals} {$prev_grouped_by = $item.grouped_by} {/if} {/foreach} {if $print_subtotals}
{$i18n.label.subtotal} {if $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()}
{$subtotals[$cur_grouped_by]['user']|escape}
{/if} {if $bean->getAttribute('chclient')}
{$subtotals[$cur_grouped_by]['client']|escape}
{/if} {if $bean->getAttribute('chproject')}
{$subtotals[$cur_grouped_by]['project']|escape}
{/if} {if $bean->getAttribute('chtask')}
{$subtotals[$cur_grouped_by]['task']|escape}
{/if} {if $bean->getAttribute('chcf_1')}
{$subtotals[$cur_grouped_by]['cf_1']|escape}
{/if} {if $bean->getAttribute('chstart')}
{/if} {if $bean->getAttribute('chfinish')}
{/if} {if $bean->getAttribute('chduration')}
{$subtotals[$cur_grouped_by]['time']}
{/if} {if $bean->getAttribute('chunits')}
{$subtotals[$cur_grouped_by]['units']}
{/if} {if $bean->getAttribute('chcost')}
{if $user->can('manage_invoices') || $user->isClient()}{$subtotals[$cur_grouped_by]['cost']}{else}{$subtotals[$cur_grouped_by]['expenses']}{/if}
{/if} {if $bean->getAttribute('chapproved')}
{/if} {if $bean->getAttribute('chpaid')}
{/if} {if $bean->getAttribute('chip')}
{/if} {if $bean->getAttribute('chinvoice')}
{/if} {if $bean->getAttribute('chtimesheet')}
{/if} {if $bean->getAttribute('chfiles')}
{/if} {if $use_checkboxes}
{/if}
{/if}
{$i18n.label.total}
{if $user->can('view_reports') || $user->can('view_all_reports') || $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('chunits')}
{$totals['units']}
{/if} {if $bean->getAttribute('chcost')}
{$user->currency|escape} {if $user->can('manage_invoices') || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if}
{/if} {if $bean->getAttribute('chapproved')}
{/if} {if $bean->getAttribute('chpaid')}
{/if} {if $bean->getAttribute('chip')}
{/if} {if $bean->getAttribute('chinvoice')}
{/if} {if $bean->getAttribute('chtimesheet')}
{/if} {if $bean->getAttribute('chfiles')}
{/if} {if $use_checkboxes}
{/if}
{/if}
{if $report_items && ($use_mark_approved || $use_mark_paid || $use_assign_to_invoice || $use_assign_to_timesheet)}
{if $use_mark_approved}
{$i18n.label.mark_approved}: {$forms.reportViewForm.mark_approved_select_options.control} {$forms.reportViewForm.mark_approved_action_options.control} {$forms.reportViewForm.btn_mark_approved.control}
{/if} {if $use_mark_paid}
{$i18n.label.mark_paid}: {$forms.reportViewForm.mark_paid_select_options.control} {$forms.reportViewForm.mark_paid_action_options.control} {$forms.reportViewForm.btn_mark_paid.control}
{/if} {if $use_assign_to_invoice}
{$i18n.form.report.assign_to_invoice}: {$forms.reportViewForm.assign_invoice_select_options.control} {$forms.reportViewForm.recent_invoice.control} {$forms.reportViewForm.btn_assign_invoice.control}
{/if} {if $use_assign_to_timesheet}
{$i18n.form.report.assign_to_timesheet}: {$forms.reportViewForm.assign_timesheet_select_options.control} {$forms.reportViewForm.timesheet.control} {$forms.reportViewForm.btn_assign_timesheet.control}
{/if}
{/if} {$forms.reportViewForm.close}