From c86d021fac7421c9be7ef675b7c7ceb6766997f7 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Wed, 27 Nov 2019 22:43:53 -0500 Subject: [PATCH] Added journal entry report to print-tui. --- src/mytui/app.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/mytui/app.rs b/src/mytui/app.rs index 6f19fa5..636de31 100644 --- a/src/mytui/app.rs +++ b/src/mytui/app.rs @@ -10,9 +10,10 @@ use crptls::core_functions::{ImportProcessParameters}; use crate::export_csv; use crate::export_txt; +use crate::export_je; -pub (crate) const REPORTS: [&'static str; 9] = [ +pub (crate) const REPORTS: [&'static str; 10] = [ "1. CSV: Account Sums", "2. CSV: Account Sums (Non-zero only)", "3. CSV: Account Sums (Orig. basis vs like-kind basis)", @@ -22,6 +23,7 @@ pub (crate) const REPORTS: [&'static str; 9] = [ "7. TXT: Accounts by lot (every movement)", "8. TXT: Accounts by lot (every lot balance)", "9. TXT: Accounts by lot (every non-zero lot balance)", + "10. TXT: Bookkeeping journal entries", ]; pub struct ListState { @@ -199,6 +201,15 @@ pub fn export( &account_map, )?; } + 10 => { + export_je::prepare_non_lk_journal_entries( + &settings, + &action_records_map, + &raw_acct_map, + &account_map, + &transactions_map, + )?; + } _ => {} } }