if (empty($q['ontable']) || empty($q['onid']) || $q['ontable'] != 'mtrack_ticket') {
return $data;
}
- DB_DataObject::debugLevel(1);
+ //DB_DataObject::debugLevel(1);
// look up in the accounting system what time was spent on the ticket..
$ie = DB_DataObject::factory('cash_invoice_entry');
$ie->ticket_id = $q['onid'];
entered_dt as changedate,
CONCAT(qtyvalue , ' Hours worked') as reason
");
- $hours = $ie->fetchAll(false,false,'toArray');
+ //$hours = $ie->fetchAll(false,false,'toArray');
- return $data;
+ return $data + $hours;