瀏覽代碼

Statistic : correctif

develop
Guillaume 1 年之前
父節點
當前提交
92ea462b3e
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      Statistic/Statistic.php

+ 2
- 2
Statistic/Statistic.php 查看文件

@@ -58,8 +58,8 @@ class Statistic
public function setData(string $propertyName, string $key, $value)
{
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 {
throw new \Exception('La proprieté "' . $propertyName . '" n\'existe pas ');
}

Loading…
取消
儲存