Skip to content

A local-first personal finance app

Enable Make Transfer menu for child transactions (#5604)

Joel Jeremy Marquezadf4bd2d0fd4
diff --git a/packages/loot-core/src/shared/transfer.ts b/packages/loot-core/src/shared/transfer.ts
index 21f58d5fde..eade1a3df6 100644
--- a/packages/loot-core/src/shared/transfer.ts
+++ b/packages/loot-core/src/shared/transfer.ts
@@ -5,11 +5,8 @@ export function validForTransfer(
toTransaction: TransactionEntity,
) {
if (
- // no subtransactions
// not already a transfer
- [fromTransaction, toTransaction].every(tran => {
- return tran.transfer_id == null && tran.is_child === false;
- }) &&
+ [fromTransaction, toTransaction].every(tran => tran.transfer_id == null) &&
fromTransaction.account !== toTransaction.account && // belong to different accounts
fromTransaction.amount + toTransaction.amount === 0 // amount must zero each other out
) {
diff --git a/upcoming-release-notes/5604.md b/upcoming-release-notes/5604.md
new file mode 100644
index 0000000000..72fafb5c3d
--- /dev/null
+++ b/upcoming-release-notes/5604.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [joel-jeremy]
+---
+
+Enable Make Transfer menu for child transactions