$fields['chclient'].", ".$fields['chinvoice'].", ".$fields['chpaid'].", ".$fields['chip'].", ".
$fields['chproject'].", ".$fields['chstart'].", ".$fields['chduration'].", ".$fields['chcost'].", ".
$fields['chtask'].", ".$fields['chfinish'].", ".$fields['chnote'].", ".$fields['chcf_1'].", ".$fields['chunits'].", ".
- $mdb2->quote($fields['group_by']).", ".$fields['chtotalsonly'].")";
+ $mdb2->quote($fields['group_by1']).", ".$fields['chtotalsonly'].")";
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error'))
return false;
"show_note = ".$fields['chnote'].", ".
"show_custom_field_1 = ".$fields['chcf_1'].", ".
"show_work_units = ".$fields['chunits'].", ".
- "group_by1 = ".$mdb2->quote($fields['group_by']).", ".
+ "group_by1 = ".$mdb2->quote($fields['group_by1']).", ".
"show_totals_only = ".$fields['chtotalsonly'].
" where id = ".$fields['id'];
$affected = $mdb2->exec($sql);
'chnote'=>$bean->getAttribute('chnote'),
'chcf_1'=>$bean->getAttribute('chcf_1'),
'chunits'=>$bean->getAttribute('chunits'),
- 'group_by'=>$bean->getAttribute('group_by'),
+ 'group_by1'=>$bean->getAttribute('group_by1'),
'chtotalsonly'=>$bean->getAttribute('chtotalsonly'));
$id = false;
$bean->setAttribute('chnote', $val['show_note']);
$bean->setAttribute('chcf_1', $val['show_custom_field_1']);
$bean->setAttribute('chunits', $val['show_work_units']);
- $bean->setAttribute('group_by', $val['group_by1']);
+ $bean->setAttribute('group_by1', $val['group_by1']);
$bean->setAttribute('chtotalsonly', $val['show_totals_only']);
$bean->setAttribute('new_fav_report', $val['name']);
} else {
'chnote'=>'1',
'chcf_1'=>'',
'chunits'=>'',
- 'group_by'=>'',
+ 'group_by1'=>'',
'chtotalsonly'=>'',
'new_fav_report'=>''));
$bean->setAttributes($attrs);
$canViewReports = $user->can('view_reports') || $user->can('view_all_reports');
$isClient = $user->isClient();
- $group_by_option = $options['group_by'];
+ $group_by_option = $options['group_by1'];
$convertTo12Hour = ('%I:%M %p' == $user->time_format) && ($options['show_start'] || $options['show_end']);
// Prepare a query for time items in tt_log table.
static function getSubtotals($options) {
global $user;
- $group_by_option = $options['group_by'];
+ $group_by_option = $options['group_by1'];
if ('no_grouping' == $group_by_option) return null;
$mdb2 = getConnection();
$isClient = $user->isClient();
$items = ttReportHelper::getItems($options);
- $group_by = $options['group_by'];
+ $group_by = $options['group_by1'];
if ($group_by && 'no_grouping' != $group_by)
$subtotals = ttReportHelper::getSubtotals($options);
$totals = ttReportHelper::getTotals($options);
$options['show_custom_field_1'] = $bean->getAttribute('chcf_1');
$options['show_work_units'] = $bean->getAttribute('chunits');
$options['show_totals_only'] = $bean->getAttribute('chtotalsonly');
- $options['group_by'] = $bean->getAttribute('group_by');
+ $options['group_by1'] = $bean->getAttribute('group_by1');
return $options;
}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.00.4325 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.01.4326 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
function handleCheckboxes() {
var totalsOnlyCheckbox = document.getElementById("chtotalsonly");
var totalsOnlyLabel = document.getElementById("totals_only_label");
- if ("no_grouping" == document.getElementById("group_by").value) {
+ if ("no_grouping" == document.getElementById("group_by1").value) {
// Unmark and disable the "Totals only" checkbox.
totalsOnlyCheckbox.checked = false;
totalsOnlyCheckbox.style.visibility = "hidden";
<td><b>{$i18n.form.reports.group_by}</b></td>
</tr>
<tr valign="top">
- <td>{$forms.reportForm.group_by.control}</td>
+ <td>{$forms.reportForm.group_by1.control}</td>
<td>{$forms.reportForm.group_by2.control}</td>
<td>{$forms.reportForm.group_by3.control}</td>
</tr>
// Do we need to show checkboxes?
if ($bean->getAttribute('chpaid') ||
- ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->getAttribute('group_by')) && !$user->isClient())) {
+ ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->getAttribute('group_by1')) && !$user->isClient())) {
if ($user->can('manage_invoices'))
$smarty->assign('use_checkboxes', true);
}
// Controls for "Assign to invoice" block.
if ($user->can('manage_invoices') &&
- ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->getAttribute('group_by')) && !$user->isClient())) {
+ ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->getAttribute('group_by1')) && !$user->isClient())) {
// Client is selected and we are displaying the invoice column.
$recent_invoices = ttTeamHelper::getRecentInvoices($user->group_id, $client_id);
if ($recent_invoices) {
}
} // isPost
-$group_by = $bean->getAttribute('group_by');
+$group_by = $bean->getAttribute('group_by1');
$options = ttReportHelper::getReportOptions($bean);
$report_items = ttReportHelper::getItems($options);
$totals = ttReportHelper::getTotals($options);
// Assign variables that are used to print subtotals.
-if ($report_items && 'no_grouping' != $group_by) {
+if ($report_items && 'no_grouping' != $group_by1) {
$smarty->assign('print_subtotals', true);
$smarty->assign('first_pass', true);
- $smarty->assign('group_by', $group_by);
+ $smarty->assign('group_by1', $group_by1);
$smarty->assign('prev_grouped_by', '');
$smarty->assign('cur_grouped_by', '');
}
$group_by_options['cf_1'] = $custom_fields->fields[0]['label'];
}
$group_by_options_size = sizeof($group_by_options);
-$form->addInput(array('type'=>'combobox','onchange'=>'handleCheckboxes();','name'=>'group_by','data'=>$group_by_options));
+$form->addInput(array('type'=>'combobox','onchange'=>'handleCheckboxes();','name'=>'group_by1','data'=>$group_by_options));
if (defined('MULTIPLE_GROUP_BY_DEBUG') && isTrue(MULTIPLE_GROUP_BY_DEBUG)) {
if ($group_by_options_size > 2) $form->addInput(array('type'=>'combobox','name'=>'group_by2','data'=>$group_by_options));
if ($group_by_options_size > 3) $form->addInput(array('type'=>'combobox','name'=>'group_by3','data'=>$group_by_options));