@@ -167,9 +167,9 @@ function handleCheckboxes() {
-{if ((in_array('cl', explode(',', $user->plugins)) && !($user->isClient() && $user->client_id)) || ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN))}
+{if (($user->isPluginEnabled('cl') && !($user->isClient() && $user->client_id)) || ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN))}
- {if in_array('cl', explode(',', $user->plugins)) && !($user->isClient() && $user->client_id)}{$i18n.label.client} | {else} | {/if}
+ {if $user->isPluginEnabled('cl') && !($user->isClient() && $user->client_id)}{$i18n.label.client} | {else} | {/if}
|
{if ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN)}{$i18n.label.option} | {else} | {/if}
@@ -179,13 +179,13 @@ function handleCheckboxes() {
{$forms.reportForm.option.control} |
{/if}
-{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
{$i18n.label.project} |
|
{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
{$i18n.label.task} |
- {/if}
+ {/if}
{/if}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
@@ -197,7 +197,7 @@ function handleCheckboxes() {
{/if}
{/if}
-{if in_array('iv', explode(',', $user->plugins))}
+{if $user->isPluginEnabled('iv')}
{$i18n.form.time.billable} |
|
@@ -209,6 +209,14 @@ function handleCheckboxes() {
{$forms.reportForm.invoice.control} |
{/if}
+{if ($user->canManageTeam() && $user->isPluginEnabled('ps'))}
+
+ {$i18n.label.paid_status} |
+
+
+ {$forms.reportForm.paid_status.control} |
+
+{/if}
{if $user->canManageTeam() || $user->isClient()}
{$i18n.label.users} |
@@ -236,32 +244,35 @@ function handleCheckboxes() {
-{if in_array('cl', explode(',', $user->plugins)) || in_array('iv', explode(',', $user->plugins))}
+{if $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv') || $user->isPluginEnabled('ps')}
- {if in_array('cl', explode(',', $user->plugins))}
+ {if $user->isPluginEnabled('cl')}
|
{/if}
- {if ($user->canManageTeam() || $user->isClient()) && in_array('iv', explode(',', $user->plugins))}
+ {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')}
|
+ {/if}
+ {if ($user->canManageTeam() && $user->isPluginEnabled('ps'))}
+ |
{/if}
-{/if}
+{/if}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}{/if} |
{if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if} |
|
-{if ((($user->canManageTeam() || $user->isClient()) || in_array('ex', explode(',', $user->plugins))) && defined('COST_ON_REPORTS') && isTrue($smarty.const.COST_ON_REPORTS))}
+{if ((($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex')) && defined('COST_ON_REPORTS') && isTrue($smarty.const.COST_ON_REPORTS))}
|
{else}
|
{/if}
- {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}{/if} |
- {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if} |
+ {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}{/if} |
+ {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if} |
|
{if ($custom_fields && $custom_fields->fields[0])}
- |
+ |
{else}
|
{/if}
@@ -276,9 +287,9 @@ function handleCheckboxes() {
{$forms.reportForm.group_by.control} |
-
+
-
+
@@ -298,4 +309,4 @@ function handleCheckboxes() {
-{$forms.reportForm.close}
\ No newline at end of file
+{$forms.reportForm.close}
| | | |