Преглед на файлове

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(),