Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix/account-exclusion-recurring-transactions
- Corrected the SQL query to ensure that active bank accounts with only recurring transactions are no longer excluded from the results. - Added a new `recurringFilter` variable to clearly define and encapsulate the logic for filtering out non-recurring transactions. - Adjusted the `LEFT JOIN` clause to apply the recurring filter within the `ON` condition, preserving all active accounts while accurately calculating their balances. - This fix resolves an issue where certain accounts disappeared from the query results, ensuring all active accounts are correctly handled in the balance calculation.
- Loading branch information