|
|
@@ -403,10 +403,14 @@ class StatisticCommonService extends Service
|
|
|
if($v['type'] == "hour") $current_hours = round($item[$v['key']] / 60, 2);
|
|
|
elseif($v['type'] == "money") $current_hours = round($item[$v['key']] / 100, 2);
|
|
|
else $current_hours = $item[$v['key']];
|
|
|
- $item[$v['value']] = $current_hours;
|
|
|
-
|
|
|
- if($v['type'] == "100b") $sum[$k][$key] -= $current_hours ;
|
|
|
- else $sum[$k][$key] -= $current_hours * 100;
|
|
|
+ if($v['type'] == "100b") {
|
|
|
+ $sum[$k][$key] -= $current_hours ;
|
|
|
+ $item[$v['value']] = $current_hours/100;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ $sum[$k][$key] -= $current_hours * 100;
|
|
|
+ $item[$v['value']] = $current_hours;
|
|
|
+ }
|
|
|
} else {
|
|
|
if($v['type'] == "day") $item[$v['value']] = $sum[$k][$key];
|
|
|
else $item[$v['value']] = round($sum[$k][$key] / 100, 2);
|