Skip to content
Snippets Groups Projects
Commit b66c50e6 authored by Andreas's avatar Andreas
Browse files

Renamed duplicate methods, and removed FileHandlingBudget class

parent c79f4134
Branches issue-13-gpx
No related tags found
1 merge request!21Add Javadoc to GeneralBudget, and reworked method addBudget
Pipeline #212344 passed with stages
in 1 minute and 43 seconds
......@@ -112,7 +112,7 @@ public class GeneralBudget {
}
}
public void addToBudgetBudgetItem(double budgetAmount, String description, ExpenseCategory category) {
public void addToBudget(double budgetAmount, String description, ExpenseCategory category) {
if ((totalSum() + budgetAmount) > maxAmount) {
throw new IllegalArgumentException("Amount to be added goes over the max value of the budget");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment