From eb36c82d1ee3b608120ab950e69f6054832d315b Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Sat, 28 Oct 2023 09:11:42 +0200 Subject: [PATCH] console: Fill up FI for the asset classes --- src/assets.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/assets.cpp b/src/assets.cpp index c9ee503..eaad277 100644 --- a/src/assets.cpp +++ b/src/assets.cpp @@ -265,6 +265,13 @@ void budget::assets_module::handle(const std::vector& args){ throw budget_exception("This asset class already exists"); } + std::cout << "Is this part of your retirement (FI) ? [yes/no] ? "; + + std::string answer; + + std::getline(std::cin, answer); + clas.fi = answer == "yes" || answer == "y"; + auto id = add_asset_class(clas); std::cout << "Asset Clas " << id << " has been created" << std::endl; } else if (subsubcommand == "edit") {