// 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', '');
}