X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Freport.tpl;h=0c98951f702d242aa9f8e4a30cebd2effd0680ba;hb=7dc611a9564d114fd401c19f72c2525bc0e7494a;hp=f99a3fb9ca5ac873f7186517103721a402f27153;hpb=f20ec5fb1e42bf4a273cb2d3a99d3d7b33c2ff48;p=timetracker.git
diff --git a/WEB-INF/templates/report.tpl b/WEB-INF/templates/report.tpl
index f99a3fb9..0c98951f 100644
--- a/WEB-INF/templates/report.tpl
+++ b/WEB-INF/templates/report.tpl
@@ -16,13 +16,15 @@
{if $bean->getAttribute('chduration')}{/if}
+ {if $bean->getAttribute('chunits')}{/if}
{if $bean->getAttribute('chcost')}{/if}
{foreach $subtotals as $subtotal}
{if $subtotal['name']}{$subtotal['name']|escape}{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}
+ {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}
@@ -30,13 +32,14 @@
{$i18n.label.total} |
{if $bean->getAttribute('chduration')}{$totals['time']} | {/if}
- {if $bean->getAttribute('chcost')}{$user->currency|escape} {if $user->canManageTeam() || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if} | {/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}
- {if $user->canManageTeam() || $user->isClient()}{/if}
+ {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}
@@ -44,9 +47,11 @@
{if $bean->getAttribute('chstart')}{/if}
{if $bean->getAttribute('chfinish')}{/if}
{if $bean->getAttribute('chduration')}{/if}
+ {if $bean->getAttribute('chunits')}{/if}
{if $bean->getAttribute('chnote')}{/if}
{if $bean->getAttribute('chcost')}{/if}
{if $bean->getAttribute('chpaid')}{/if}
+ {if $bean->getAttribute('chip')}{/if}
{if $bean->getAttribute('chinvoice')}{/if}
{foreach $report_items as $item}
@@ -57,17 +62,19 @@
{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} | {/if}{/if}
- {if $bean->getAttribute('chclient')}{if $group_by == 'client'}{$subtotals[$prev_grouped_by]['name']|escape} | {/if}{/if}
- {if $bean->getAttribute('chproject')}{if $group_by == 'project'}{$subtotals[$prev_grouped_by]['name']|escape} | {/if}{/if}
- {if $bean->getAttribute('chtask')}{if $group_by == 'task'}{$subtotals[$prev_grouped_by]['name']|escape} | {/if}{/if}
- {if $bean->getAttribute('chcf_1')}{if $group_by == 'cf_1'}{$subtotals[$prev_grouped_by]['name']|escape} | {/if}{/if}
+ {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('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('chcost')}{if $user->can('manage_invoices') || $user->isClient()}{$subtotals[$prev_grouped_by]['cost']}{else}{$subtotals[$prev_grouped_by]['expenses']}{/if} | {/if}
{if $bean->getAttribute('chpaid')} | {/if}
+ {if $bean->getAttribute('chip')} | {/if}
{if $bean->getAttribute('chinvoice')} | {/if}
{if $use_checkboxes} | {/if}
@@ -81,7 +88,7 @@
{/if}
{$item.date} |
- {if $user->canManageTeam() || $user->isClient()}{$item.user|escape} | {/if}
+ {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}
@@ -89,9 +96,11 @@
{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('chnote')}{$item.note|escape} | {/if}
- {if $bean->getAttribute('chcost')}{if $user->canManageTeam() || $user->isClient()}{$item.cost}{else}{$item.expense}{/if} | {/if}
+ {if $bean->getAttribute('chcost')}{if $user->can('manage_invoices') || $user->isClient()}{$item.cost}{else}{$item.expense}{/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 $use_checkboxes}
{if 1 == $item.type} | {/if}
@@ -105,17 +114,19 @@
{if $print_subtotals}
{$i18n.label.subtotal}
- {if $user->canManageTeam() || $user->isClient()} | {if $group_by == 'user'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if}
- {if $bean->getAttribute('chclient')}{if $group_by == 'client'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if}
- {if $bean->getAttribute('chproject')}{if $group_by == 'project'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if}
- {if $bean->getAttribute('chtask')}{if $group_by == 'task'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if}
- {if $bean->getAttribute('chcf_1')}{if $group_by == 'cf_1'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if}
+ {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('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('chcost')}{if $user->can('manage_invoices') || $user->isClient()}{$subtotals[$cur_grouped_by]['cost']}{else}{$subtotals[$cur_grouped_by]['expenses']}{/if} | {/if}
{if $bean->getAttribute('chpaid')} | {/if}
+ {if $bean->getAttribute('chip')} | {/if}
{if $bean->getAttribute('chinvoice')} | {/if}
{if $use_checkboxes} | {/if}
@@ -124,7 +135,7 @@
|
{$i18n.label.total} |
- {if $user->canManageTeam() || $user->isClient()} | {/if}
+ {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}
@@ -132,9 +143,11 @@
{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('chnote')} | {/if}
- {if $bean->getAttribute('chcost')}{$user->currency|escape} {if $user->canManageTeam() || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if} | {/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('chpaid')} | {/if}
+ {if $bean->getAttribute('chip')} | {/if}
{if $bean->getAttribute('chinvoice')} | {/if}
{if $use_checkboxes} | {/if}