ing connected, makign some features

This commit is contained in:
davmar
2026-09-07 00:20:58 +02:00
parent 87afe271b7
commit 21df7b0085
15 changed files with 1197 additions and 322 deletions
+3 -3
View File
@@ -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),
),
];
}