Skip to content

Commit 5d14141

Browse files
committed
fix for foreign currency on reconciled TXs
relates to #540
1 parent e96d78e commit 5d14141

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: lib/pages/transaction.dart

+7
Original file line numberDiff line numberDiff line change
@@ -2319,6 +2319,13 @@ TransactionSplitUpdate txFilterSameFields(
23192319
}
23202320
}
23212321

2322+
// Undo "HAX" from above if not needed (foreign currency was zero, is zero)
2323+
if (tx.foreignCurrencyId == null &&
2324+
txU.foreignCurrencyId == null &&
2325+
foreignAmount == "0") {
2326+
foreignAmount = null;
2327+
}
2328+
23222329
return txU.copyWithWrapped(
23232330
amount: Wrapped<String?>.value(amount),
23242331
foreignAmount: Wrapped<String?>.value(foreignAmount),

0 commit comments

Comments
 (0)