Browse Source

Statistic : correctif

develop
Guillaume 1 year ago
parent
commit
92ea462b3e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Statistic/Statistic.php

+ 2
- 2
Statistic/Statistic.php View File

public function setData(string $propertyName, string $key, $value) public function setData(string $propertyName, string $key, $value)
{ {
if (isset($this->properties[$propertyName])) { if (isset($this->properties[$propertyName])) {
$this->properties[$propertyName]['data'][$key] += number_format($value, 2);
$this->properties[$propertyName]['total_period'] += number_format($value, 2);
$this->properties[$propertyName]['data'][$key] += $value;
$this->properties[$propertyName]['total_period'] += $value;
} else { } else {
throw new \Exception('La proprieté "' . $propertyName . '" n\'existe pas '); throw new \Exception('La proprieté "' . $propertyName . '" n\'existe pas ');
} }

Loading…
Cancel
Save