ing connected, makign some features
This commit is contained in:
@@ -12,14 +12,14 @@ class RecurringItem {
|
||||
required this.amount,
|
||||
required this.currency,
|
||||
required this.dayOfMonth,
|
||||
required this.category,
|
||||
this.labelIds = const [],
|
||||
});
|
||||
|
||||
final String description;
|
||||
final double amount;
|
||||
final String currency;
|
||||
final int dayOfMonth;
|
||||
final TxCategory category;
|
||||
final List<String> labelIds;
|
||||
}
|
||||
|
||||
/// Build unique recurring templates from annotated transactions.
|
||||
@@ -51,7 +51,7 @@ List<RecurringItem> recurringItemsFrom({
|
||||
amount: tx.amount,
|
||||
currency: tx.currency,
|
||||
dayOfMonth: (DateTime.tryParse(tx.date)?.day ?? 1).clamp(1, 28),
|
||||
category: metaFor(tx).category,
|
||||
labelIds: List<String>.of(metaFor(tx).labelIds),
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user