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::transaction::{Transaction, ActionRecord};
use crate::import_accts_txns;
use crate::csv_import_accts_txns;
use crate::import_cost_proceeds_etc;
use crate::create_lots_mvmts;
@ -88,12 +88,12 @@ pub fn import_and_process_final(
.has_headers(true)
.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(()) => {}
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,
transactions_map,
action_records,

View File

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