mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
Calculate totals all the time
This commit is contained in:
parent
dafe7d484d
commit
d9f99b9fe4
@ -471,8 +471,7 @@ class timesheet_ui extends timesheet_bo
|
||||
function get_rows(&$query_in,&$rows,&$readonlys,$id_only=false)
|
||||
{
|
||||
$this->show_sums = false;
|
||||
if ($query_in['filter'])
|
||||
{
|
||||
|
||||
$query_in['enddate'] = $query_in['enddate'] ? $query_in['enddate'] : time();
|
||||
$date_filter = $this->date_filter($query_in['filter'],$query_in['startdate'],$query_in['enddate']);
|
||||
|
||||
@ -513,7 +512,6 @@ class timesheet_ui extends timesheet_bo
|
||||
$this->show_sums[] = 'day';
|
||||
}
|
||||
}
|
||||
}
|
||||
//echo "<p align=right>show_sums=".print_r($this->show_sums,true)."</p>\n";
|
||||
if (!$id_only && !$query_in['csv_export']) $GLOBALS['egw']->session->appsession('index',TIMESHEET_APP,$query_in);
|
||||
|
||||
@ -785,15 +783,9 @@ class timesheet_ui extends timesheet_bo
|
||||
if ($query['col_filter']['ts_owner']) $rows['ownerClass'] = 'noPrint';
|
||||
$rows['no_owner_col'] = $query['no_owner_col'];
|
||||
if (!$rows['no_owner_col'] && $query['selectcols'] && !strpos($query['selectcols'],'ts_owner')) $rows['no_owner_col'] = 1;
|
||||
if ($query['filter'])
|
||||
{
|
||||
|
||||
$rows += $this->summary;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Clear summary
|
||||
$rows += array('duration'=>'','price'=>'','quantity'=>'');
|
||||
}
|
||||
|
||||
$rows['pm_integration'] = $this->pm_integration;
|
||||
$rows['ts_viewtype'] = $rows['no_ts_quantity'] = $rows['no_ts_unitprice'] = $rows['no_ts_total'] = $this->ts_viewtype == 'short';
|
||||
if (!$rows['ts_viewtype'])
|
||||
|
Loading…
Reference in New Issue
Block a user