afa 5 tháng trước cách đây
mục cha
commit
cf469afbc1
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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)
         ];
     }