mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
* Infolog - Provide duration, pricelist & unit price when creating a timesheet
This commit is contained in:
parent
2087fe0b03
commit
238988373e
@ -587,6 +587,18 @@ class infolog_ui
|
||||
if ((int)$data['id'] && ($info = $this->bo->read($data['id'])))
|
||||
{
|
||||
if ($info['info_cat']) $set['cat_id'] = $info['info_cat'];
|
||||
if ($info['info_used_time'])
|
||||
{
|
||||
$set['ts_duration'] = $info['info_used_time'];
|
||||
}
|
||||
if ($info['pl_id'])
|
||||
{
|
||||
$set['pl_id'] = $info['pl_id'];
|
||||
}
|
||||
if ($info['info_price'])
|
||||
{
|
||||
$set['ts_unitprice'] = $info['info_price'];
|
||||
}
|
||||
|
||||
foreach(Link::get_links('infolog',$info['info_id'],'','link_lastmod DESC',true) as $link)
|
||||
{
|
||||
@ -596,6 +608,7 @@ class infolog_ui
|
||||
$set['link_id'][] = $link['id'];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return $set;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user