mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Change automatically calculated quantity and list quantity to 2 decimal places
This commit is contained in:
parent
ee5a8c5fcc
commit
7b2511d264
@ -175,7 +175,7 @@ class timesheet_ui extends timesheet_bo
|
||||
case 'apply':
|
||||
if ((!$this->data['ts_quantity'] || $this->ts_viewtype == 'short') && $this->data['ts_duration']) // set the quantity (in h) from the duration (in min)
|
||||
{
|
||||
$this->data['ts_quantity'] = $this->data['ts_duration'] / 60.0;
|
||||
$this->data['ts_quantity'] = round($this->data['ts_duration'] / 60.0, 2);
|
||||
}
|
||||
if (!$this->data['ts_quantity'])
|
||||
{
|
||||
@ -733,6 +733,10 @@ class timesheet_ui extends timesheet_bo
|
||||
$row['titleClass'] = 'timesheet_titleSum';
|
||||
continue;
|
||||
}
|
||||
if($row['ts_quantity'])
|
||||
{
|
||||
$row['ts_quantity'] = round($row['ts_quantity'], 2);
|
||||
}
|
||||
if (!$this->check_acl(EGW_ACL_EDIT,$row))
|
||||
{
|
||||
$row['class'] .= ' rowNoEdit ';
|
||||
|
Loading…
Reference in New Issue
Block a user