From 247c24551ed2a0f5eaadd5b19af7b21120291132 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Sat, 23 Nov 2019 13:28:34 -0500 Subject: [PATCH] Allow reports with like-kind columns to export only if the LK setting is true. --- src/export_all.rs | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/export_all.rs b/src/export_all.rs index fe003a4..be22895 100644 --- a/src/export_all.rs +++ b/src/export_all.rs @@ -33,11 +33,13 @@ pub fn export( &raw_acct_map ); - export_csv::_3_account_sums_to_csv_with_orig_basis( - &settings, - &raw_acct_map, - &account_map - ); + if settings.lk_treatment_enabled { + export_csv::_3_account_sums_to_csv_with_orig_basis( + &settings, + &raw_acct_map, + &account_map + ); + } export_csv::_4_transaction_mvmt_detail_to_csv( &settings, @@ -55,13 +57,15 @@ pub fn export( &transactions_map )?; - export_csv::_6_transaction_mvmt_detail_to_csv_w_orig( - &settings, - &action_records_map, - &raw_acct_map, - &account_map, - &transactions_map - )?; + if settings.lk_treatment_enabled { + export_csv::_6_transaction_mvmt_detail_to_csv_w_orig( + &settings, + &action_records_map, + &raw_acct_map, + &account_map, + &transactions_map + )?; + } export_txt::_1_account_lot_detail_to_txt( &settings,