fix statkpi

This commit is contained in:
Lasha Kapanadze 2024-11-04 14:25:39 +04:00
parent ed4f797a59
commit c6f01119de
2 changed files with 3 additions and 10 deletions

View File

@ -411,7 +411,7 @@ $labNameResult = $conn->query($labNameQuery);
$labName = [];
while ($row = $labNameResult->fetch_assoc()) {
$labName[] = [
"LabName" => $row['LabName']
"labName" => $row['LabName']
];
}
@ -453,7 +453,8 @@ $analysisDistributionQuery = "
LEFT JOIN analysisvocabulary a ON ap.result_TestName = a.idanalysisvocabulary
LEFT JOIN reports r ON ap.idreports = r.idreports
LEFT JOIN products p ON r.idproducts = p.idproducts
$filters
$filters
AND a.nameanalysisvoc is not null
GROUP BY ap.result_TestName
ORDER BY totalTests DESC
LIMIT 20

View File

@ -310,13 +310,6 @@ include('parsedatachart.php');
<div class="filter-sidebar" id="filterSidebar">
<?php
// 'refNumbers' => $refNumbers,
// 'productsSeasons' => $productsSeasons,
// 'ageRange' => $ageRange,
// 'labName' => $labName,
// 'tesType' => $tesType,
// 'numberLabs' => $numberLabs,
?>
<div class="form-group">
<label for="productsRefnumber">Product Ref Number</label>
@ -778,7 +771,6 @@ include('parsedatachart.php');
$('#totalTests').text(data.totalTests);
$('#failedTests').text(data.failedTests);
$('#failedTestsPercent').text('(' + data.failedTestsPercent.toFixed(2) + '%)');
// Aggiorna il grafico della distribuzione delle analisi
if (data.analysisDistribution && data.analysisDistribution.length > 0) {
// Ordina i dati per numero di test e prendi solo i primi 15