sync transactions with pocketbase 2

This commit is contained in:
davmar
2026-09-09 22:31:04 +02:00
parent 96627a830e
commit e35a4d6893
12 changed files with 1442 additions and 12 deletions
+11
View File
@@ -127,6 +127,17 @@ class TxMetaController extends ChangeNotifier {
return n;
}
/// How many labeled txs get their labels only from merchant rules (no per-tx row).
int merchantOnlyLabeledCount(List<BankTransaction> txs) {
var n = 0;
for (final tx in txs) {
final stored = _byId[tx.id];
if (stored != null && stored.hasLabel) continue;
if (labelIdsFor(tx).isNotEmpty) n++;
}
return n;
}
List<TxLabel> get customLabels => List.unmodifiable(_customLabels);
/// Effective parent id (hierarchy map wins over embedded [TxLabel.parentId]).