afa 5 months ago
parent
commit
0ad202691b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/common/model/MoneyLog.php

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

@@ -54,9 +54,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)
         ];
     }