mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 18:40:34 -05:00
Enable Make Transfer menu for child transactions (#5604)
This commit is contained in:
committed by
GitHub
parent
102c6eaff6
commit
adf4bd2d0f
@@ -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
|
||||
) {
|
||||
|
||||
6
upcoming-release-notes/5604.md
Normal file
6
upcoming-release-notes/5604.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Enhancements
|
||||
authors: [joel-jeremy]
|
||||
---
|
||||
|
||||
Enable Make Transfer menu for child transactions
|
||||
Reference in New Issue
Block a user