sync transactions with pocketbase 2
This commit is contained in:
@@ -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]).
|
||||
|
||||
Reference in New Issue
Block a user