Skip to content

Commit

Permalink
Fixed printouts on the Account Ledger Page
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyDeSantiago committed Dec 5, 2023
1 parent 5522b1d commit a7577a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ async function printTotal() {
let debitTotal = 0;
let creditTotal = 0;

for (let i = 0; i < approvedTransactions.length; i++) {
const transaction = await getDocumentReference('transactions', approvedTransactions[i]);
for (let i = 0; i < transactionsSpecificToCurrentAccount.docs.length; i++) {
const transaction = transactionsSpecificToCurrentAccount.docs[i].data();
debitTotal += transaction.debit;
creditTotal += transaction.credit;
}
Expand Down

0 comments on commit a7577a4

Please sign in to comment.