import_accts_txns -> csv_import_accts_txns; resolves #21

This commit is contained in:
scoobybejesus 2019-08-25 23:31:08 -04:00
parent 82f303f064
commit 4e39cdc652
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ use structopt::StructOpt;
use crate::account::{Account, RawAccount, Lot}; use crate::account::{Account, RawAccount, Lot};
use crate::transaction::{Transaction, ActionRecord}; use crate::transaction::{Transaction, ActionRecord};
use crate::import_accts_txns; use crate::csv_import_accts_txns;
use crate::import_cost_proceeds_etc; use crate::import_cost_proceeds_etc;
use crate::create_lots_mvmts; use crate::create_lots_mvmts;
@ -88,12 +88,12 @@ pub fn import_and_process_final(
.has_headers(true) .has_headers(true)
.from_reader(file); .from_reader(file);
match import_accts_txns::import_accounts(&mut rdr, raw_acct_map, acct_map) { match csv_import_accts_txns::import_accounts(&mut rdr, raw_acct_map, acct_map) {
Ok(()) => {} Ok(()) => {}
Err(err) => { println!("\nFailed to import accounts from CSV."); println!("{}", err); } Err(err) => { println!("\nFailed to import accounts from CSV."); println!("{}", err); }
}; };
match import_accts_txns::import_transactions( match csv_import_accts_txns::import_transactions(
&mut rdr, &mut rdr,
transactions_map, transactions_map,
action_records, action_records,

View File

@ -18,7 +18,7 @@ use std::error::Error;
mod account; mod account;
mod transaction; mod transaction;
mod core_functions; mod core_functions;
mod import_accts_txns; mod csv_import_accts_txns;
mod create_lots_mvmts; mod create_lots_mvmts;
mod import_cost_proceeds_etc; mod import_cost_proceeds_etc;
mod cli_user_choices; mod cli_user_choices;