Merge branch 'develop' into filter-uncategorized-bank-transactions

This commit is contained in:
Ahmed Bouhuolia
2024-08-22 00:12:37 +02:00
320 changed files with 3212 additions and 1420 deletions

View File

@@ -34,8 +34,13 @@ export class GetRecognizedTransactionsService {
q.withGraphFetched('recognizedTransaction.assignAccount');
q.withGraphFetched('recognizedTransaction.bankRule');
q.whereNotNull('recognizedTransactionId');
// Exclude the excluded transactions.
q.modify('notExcluded');
// Exclude the pending transactions.
q.modify('notPending');
if (_query.accountId) {
q.where('accountId', _query.accountId);
}
@@ -51,6 +56,9 @@ export class GetRecognizedTransactionsService {
if (_query.maxAmount) {
q.modify('maxAmount', _query.maxAmount);
}
if (_query.accountId) {
q.where('accountId', _query.accountId);
}
})
.pagination(_query.page - 1, _query.pageSize);