Skip to content

Commit

Permalink
fix: run rules on reconciliation transaction (#3625)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderKoen authored Oct 12, 2024
1 parent 300ddc6 commit 75acfc7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/desktop-client/src/components/accounts/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/3625.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [UnderKoen]
---

Run rules on "Reconciliation balance adjustment" transactions

0 comments on commit 75acfc7

Please sign in to comment.