mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 18:40:34 -05:00
fix: run rules on reconciliation transaction (#3625)
This commit is contained in:
committed by
GitHub
parent
300ddc6311
commit
75acfc79e1
@@ -978,9 +978,16 @@ class AccountInternal extends PureComponent<
|
||||
transactions: [...reconciliationTransactions, ...this.state.transactions],
|
||||
});
|
||||
|
||||
// run rules on the reconciliation transaction
|
||||
const ruledTransactions = await Promise.all(
|
||||
reconciliationTransactions.map(transaction =>
|
||||
send('rules-run', { transaction }),
|
||||
),
|
||||
);
|
||||
|
||||
// sync the reconciliation transaction
|
||||
await send('transactions-batch-update', {
|
||||
added: reconciliationTransactions,
|
||||
added: ruledTransactions,
|
||||
});
|
||||
await this.refetchTransactions();
|
||||
};
|
||||
|
||||
6
upcoming-release-notes/3625.md
Normal file
6
upcoming-release-notes/3625.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [UnderKoen]
|
||||
---
|
||||
|
||||
Run rules on "Reconciliation balance adjustment" transactions
|
||||
Reference in New Issue
Block a user