This commit is contained in:
2026-03-29 14:16:17 +03:00
parent 2fc1d3e200
commit 31dc972e52
4 changed files with 381 additions and 25 deletions
+6 -1
View File
@@ -30,10 +30,15 @@ class AddTransactionState {
});
factory AddTransactionState.fromTransaction(Transaction tx) {
// Override type to transfer when category is 'Transfer'
final resolvedType = (tx.category == 'Transfer')
? TransactionType.transfer
: tx.type;
return AddTransactionState(
amount: tx.amount,
category: tx.category,
type: tx.type,
type: resolvedType,
date: tx.date,
note: tx.note ?? '',
editingId: tx.id,