afa 5 bulan lalu
induk
melakukan
cf469afbc1
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      app/common/model/MoneyLog.php

+ 3 - 3
app/common/model/MoneyLog.php

@@ -78,9 +78,9 @@ class MoneyLog Extends Model
         $expenditure = $expenditure->sum('change');
         $balance = $income - $expenditure;
         return [
-            'balance' => $balance,
-            'income' => $income,
-            'expenditure' => $expenditure
+            'balance' => round($balance,2),
+            'income' => round($income,2),
+            'expenditure' => round($expenditure,2)
         ];
     }