|
@@ -1907,7 +1907,7 @@ public function showPowiazaniaEnergaRumKontrahenciPowiazania($items) {
|
|
}, $json['details']);
|
|
}, $json['details']);
|
|
|
|
|
|
$relationsProgress = $json['summary']['count'] > 0 ? (array_sum($listDetailsProgress) / $json['summary']['count']) : 0;
|
|
$relationsProgress = $json['summary']['count'] > 0 ? (array_sum($listDetailsProgress) / $json['summary']['count']) : 0;
|
|
- $reportsCount = V::get('reportsCount', 0, $json['summary'], 'int');
|
|
|
|
|
|
+ $reportsCount = V::get('reportsCount', 0, $json['summary'], 'float');
|
|
$reportsProgress = $reportsCount > 0 ? (V::get('reportsCreated', 0, $json['summary'], 'int') / $reportsCount) : 0;
|
|
$reportsProgress = $reportsCount > 0 ? (V::get('reportsCreated', 0, $json['summary'], 'int') / $reportsCount) : 0;
|
|
return round(0.5 * $relationsProgress + 0.5 * $reportsProgress, 2);
|
|
return round(0.5 * $relationsProgress + 0.5 * $reportsProgress, 2);
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|