*
Showing
1 changed file
with
3 additions
and
1 deletions
| ... | @@ -48,12 +48,14 @@ class MusicianIncomeService extends Service | ... | @@ -48,12 +48,14 @@ class MusicianIncomeService extends Service |
| 48 | foreach ($months as $month) { | 48 | foreach ($months as $month) { |
| 49 | if (!isset($stat_income[$month])) { | 49 | if (!isset($stat_income[$month])) { |
| 50 | $stat_income[$month] = [ | 50 | $stat_income[$month] = [ |
| 51 | 'month' => $month, | 51 | 'month' => intval($month), |
| 52 | 'income'=> 0.00 | 52 | 'income'=> 0.00 |
| 53 | ]; | 53 | ]; |
| 54 | } | 54 | } |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | ksort($stat_income); | ||
| 58 | |||
| 57 | return Response::success(['list'=>array_values($stat_income), 'total_income'=>$total_income]); | 59 | return Response::success(['list'=>array_values($stat_income), 'total_income'=>$total_income]); |
| 58 | } | 60 | } |
| 59 | 61 | ... | ... |
-
Please register or sign in to post a comment