Skip to content

Commit

Permalink
console: Fill up FI for the asset classes
Browse files Browse the repository at this point in the history
  • Loading branch information
wichtounet committed Oct 28, 2023
1 parent 6a3d979 commit eb36c82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/assets.cpp
Expand Up @@ -265,6 +265,13 @@ void budget::assets_module::handle(const std::vector<std::string>& 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") {
Expand Down

0 comments on commit eb36c82

Please sign in to comment.