Move down to only 1 abstract data type with a nully Frequency. Should aid in making the Expense page usable for all 3 data type.

This commit is contained in:
2025-02-21 08:56:50 -07:00
parent 992195b9a0
commit be66f52cbf
11 changed files with 133 additions and 139 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
// Local
import '/models/tracked_type_recurring.dart';
import '/models/tracked_item.dart';
import '/models/frequency.dart';
class Income extends RecurringTrackedType {
class Income extends TrackedItem {
static String amountText = "Revenue";
Income({
@@ -29,7 +29,7 @@ class Income extends RecurringTrackedType {
'id': id,
'name': name,
'revenue': amount,
'frequency': frequency.title,
'frequency': frequency!.title,
'description': description,
};
}