From be6f6e3c735a2b0d96425448620c3b723ae94d2e Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Mon, 12 Aug 2024 10:54:16 +0200 Subject: [PATCH] fix: function description --- .../src/services/Cashflow/GetPendingBankAccountTransaction.ts | 4 ++-- .../server/src/services/Cashflow/GetRecongizedTransactions.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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) {