Class ExpenseViewCLI
java.lang.Object
com.truebubo.maniflow.expense.ExpenseViewCLI
CLI Frontend for expense portion of the application
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpense
(Expense expense) Saves the expensevoid
changeExpense
(int id, BigDecimal newAmount) Change the value on the expense with given idvoid
Displays the list of all the expenses for the user
-
Constructor Details
-
ExpenseViewCLI
CLI front-end for expenses- Parameters:
expenseService
- service for accessing expense back-end
-
-
Method Details
-
showExpenses
public void showExpenses()Displays the list of all the expenses for the user -
addExpense
Saves the expense- Parameters:
expense
- Information about the expense to be added
-
changeExpense
Change the value on the expense with given id- Parameters:
id
- ID identifying the expense. It is the left value displayed when calling showExpensesnewAmount
- Will update the value to this value. If set to zero. The value will be removed
-