From 238988373ecbb4a52e6e1291ffa3e90e8ea66a11 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 19 Jun 2018 11:02:06 -0600 Subject: [PATCH] * Infolog - Provide duration, pricelist & unit price when creating a timesheet --- infolog/inc/class.infolog_ui.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index d240b25ea5..e9e2946f38 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -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; }