diff --git a/packages/server/src/services/Cashflow/GetPendingBankAccountTransaction.ts b/packages/server/src/services/Cashflow/GetPendingBankAccountTransaction.ts index 11ad32576..7f19af6a1 100644 --- a/packages/server/src/services/Cashflow/GetPendingBankAccountTransaction.ts +++ b/packages/server/src/services/Cashflow/GetPendingBankAccountTransaction.ts @@ -12,8 +12,8 @@ export class GetPendingBankAccountTransactions { /** * Retrieves the given bank accounts pending transaction. - * @param {number} tenantId - * @param {number} bankAccountId + * @param {number} tenantId - Tenant id. + * @param {GetPendingTransactionsQuery} filter - Pending transactions query. */ async getPendingTransactions( tenantId: number, diff --git a/packages/server/src/services/Cashflow/GetRecongizedTransactions.ts b/packages/server/src/services/Cashflow/GetRecongizedTransactions.ts index e82d0b0c8..e0db018a4 100644 --- a/packages/server/src/services/Cashflow/GetRecongizedTransactions.ts +++ b/packages/server/src/services/Cashflow/GetRecongizedTransactions.ts @@ -35,7 +35,10 @@ export class GetRecognizedTransactionsService { q.withGraphFetched('recognizedTransaction.bankRule'); q.whereNotNull('recognizedTransactionId'); + // Exclude the excluded transactions. q.modify('notExcluded'); + + // Exclude the pending transactions. q.modify('notPending'); if (_filter.accountId) {