Class IncomeViewCLI
java.lang.Object
com.truebubo.maniflow.income.IncomeViewCLI
CLI Frontend for income portion of the application
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Saves the incomevoid
changeIncome
(int id, BigDecimal newAmount) Change the value on the income with given idvoid
Displays the list of all the incomes for the user
-
Constructor Details
-
IncomeViewCLI
CLI front-end for incomes- Parameters:
incomeService
- service for accessing income back-end
-
-
Method Details
-
showIncomes
public void showIncomes()Displays the list of all the incomes for the user -
addIncome
Saves the income- Parameters:
income
- Information about the income to be added
-
changeIncome
Change the value on the income with given id- Parameters:
id
- ID identifying the income. It is the left value displayed when calling showIncomesnewAmount
- Will update the value to this value. If set to zero. The value will be removed
-