remove getStarted from login

This commit is contained in:
Fernando Ontiveros
2025-04-14 17:32:23 +00:00
parent cfc74c33fd
commit a3b33a1b0f
13 changed files with 120 additions and 629 deletions

View File

@@ -784,11 +784,18 @@ class IndicatorsCalculator
$criteria->addAsColumn('average', 'ROUND(AVG(TOTAL_TIME_BY_TASK/TOTAL_CASES_OUT), 2)');
$criteria->addAsColumn('sdv', 'ROUND(STDDEV(TOTAL_TIME_BY_TASK/TOTAL_CASES_OUT), 2)');
$criteria->add(UsrReportingPeer::TAS_UID, $tasUid);
// Add GROUP BY clause to avoid error 'missing GROUP BY clause in your SQL query'
$criteria->addGroupByColumn(UsrReportingPeer::TOTAL_CASES_OUT);
$dataset = UsrReportingPeer::doSelectRS($criteria);
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$dataset->next();
$result = $dataset->getRow();
if (is_null($result)) {
$result = [];
$result['average'] = 0;
$result['sdv'] = 0;
}
return $result;
} catch (Exception $error) {
throw $error;