瀏覽代碼

Bug fix: bill/income total were not displaying.

Lee Morgan 11 月之前
父節點
當前提交
3669fa4d13
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 4 0
      src/views/js/data/Bill.js
  2. 4 0
      src/views/js/data/Income.js

+ 4 - 0
src/views/js/data/Bill.js

@@ -13,6 +13,10 @@ export default class Bill{
         return this._name;
     }
 
+    get amount(){
+        return this._amount;
+    }
+
     static create(name, amount){
         return new Bill(
             crypto.randomUUID(),

+ 4 - 0
src/views/js/data/Income.js

@@ -13,6 +13,10 @@ export default class Income{
         return this._name;
     }
 
+    get amount(){
+        return this._amount;
+    }
+
     static create(name, amount){
         return new Income(
             crypto.randomUUID(),