A local-first personal finance app
fix: run rules on reconciliation transaction (#3625)
Koen van Staveren75acfc79e199
diff --git a/packages/desktop-client/src/components/accounts/Account.tsx b/packages/desktop-client/src/components/accounts/Account.tsxindex db2b910ddd..0a623e3528 100644--- a/packages/desktop-client/src/components/accounts/Account.tsx+++ b/packages/desktop-client/src/components/accounts/Account.tsx@@ -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 transactionawait send('transactions-batch-update', {- added: reconciliationTransactions,+ added: ruledTransactions,});await this.refetchTransactions();};diff --git a/upcoming-release-notes/3625.md b/upcoming-release-notes/3625.mdnew file mode 100644index 0000000000..5387017014--- /dev/null+++ b/upcoming-release-notes/3625.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [UnderKoen]+---++Run rules on "Reconciliation balance adjustment" transactions