gogs 2 kuukautta sitten
vanhempi
sitoutus
73194b5d55
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/Service/StatisticService.php

+ 2 - 2
app/Service/StatisticService.php

@@ -1281,11 +1281,11 @@ class StatisticService extends Service
         })->all();
         $return_item_list = [];
         foreach ($month_employee_list as $v){
-            $key = $v['item_id'];
+            $key = $v['item_id']. '_' . $v['month'];
             if(!isset($return_item_list[$key])) $return_item_list[$key]['depreciation'] = 0;
             $return_item_list[$key]['depreciation'] += $v['depreciation'];
         }
-
+//        dd($return_item_list);
         return $return_item_list;
     }