From 60f6de11a37b9a85d69dd70cf424a0e5f7470034 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Tue, 29 Oct 2019 23:10:15 -0400 Subject: [PATCH] Changed formatting in txt export reports. Also fixed binary name. --- Cargo.toml | 2 +- src/export_txt.rs | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b188d33..02ec3d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ name = "crptls" path = "src/lib.rs" [[bin]] -name = "main" +name = "cryptools" path = "src/main.rs" [dependencies] diff --git a/src/export_txt.rs b/src/export_txt.rs index 3fe0218..faf6dcd 100644 --- a/src/export_txt.rs +++ b/src/export_txt.rs @@ -259,11 +259,12 @@ Enable like-kind treatment: {}", if acct.list_of_lots.borrow().len() > 0 { - writeln!(file, " Lot {} • Σ: {}, with remaining cost basis of {} and basis date of {}", + writeln!(file, " Lot {} created {} w/ basis date {} • Σ: {}, and cost basis of {}", (lot_idx+1), + lot.date_of_first_mvmt_in_lot, + lot.date_for_basis_purposes, movements_sum, lk_lot_basis, - lot.date_for_basis_purposes )?; } } @@ -347,11 +348,12 @@ Enable like-kind treatment: {}", if acct.list_of_lots.borrow().len() > 0 { if movements_sum > d128!(0) { - writeln!(file, " Lot {} • Σ: {}, with remaining cost basis of {} and basis date of {}", + writeln!(file, " Lot {} created {} w/ basis date {} • Σ: {}, and cost basis of {}", (lot_idx+1), + lot.date_of_first_mvmt_in_lot, + lot.date_for_basis_purposes, movements_sum, lk_lot_basis, - lot.date_for_basis_purposes )?; } }