fix: rounding the total amount the pending and matched transactions

This commit is contained in:
Ahmed Bouhuolia
2024-08-12 13:01:00 +02:00
parent 0a78d56015
commit c928940d32
2 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ export class GetMatchedTransactions {
.whereIn('id', uncategorizedTransactionIds)
.throwIfNotFound();
const totalPending = Math.abs(sumBy(uncategorizedTransactions, 'amount'));
const totalPending = sumBy(uncategorizedTransactions, 'amount');
const filtered = filter.transactionType
? this.registered.filter((item) => item.type === filter.transactionType)