Skip to content

Commit

Permalink
fixing the accounts report and test
Browse files Browse the repository at this point in the history
  • Loading branch information
alensiljak committed Sep 7, 2023
1 parent bed8663 commit 941dea5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ use crate::{balance::Balance, journal::Journal, account::Account};
/// in output.cc
/// report_accounts
pub fn report_accounts(journal: &Journal) -> Vec<String> {
// journal
// .accounts
// .iter()
// .map(|account| account.name.to_string())
// .collect()
todo!("redo")
let accts = journal.master.flatten_account_tree();
accts
.iter()
.map(|account| account.name.to_string())
.collect()
}

fn report_commodities() {
Expand Down

0 comments on commit 941dea5

Please sign in to comment.