ok for now

This commit is contained in:
davmar
2026-09-06 21:58:59 +02:00
parent 773187f0af
commit 87afe271b7
20 changed files with 2271 additions and 377 deletions
+10
View File
@@ -94,6 +94,16 @@ class BankTransaction {
final String currency;
final bool pending;
/// Stable local key used for per-occurrence annotations.
String get id => '$date|$currency|$amount|$description';
/// Match key for auto-category (same merchant / description).
String get descriptionKey =>
description.trim().toLowerCase().replaceAll(RegExp(r'\s+'), ' ');
/// Exact match for copying notes (same description + amount + currency).
String get exactKey => '$descriptionKey|$amount|$currency';
factory BankTransaction.fromJson(Map<String, dynamic> json) {
final rawAmount = json['amount'];
final amount = switch (rawAmount) {