Skip to content

Commit

Permalink
Merge pull request #244 from itsmejr257/junRong-Final-Submission
Browse files Browse the repository at this point in the history
Minor Changes to DG, UG, Storage and RecurringExpenseCommandCreator
  • Loading branch information
itsmejr257 authored Apr 14, 2024
2 parents 83fded9 + 2182e1e commit 2895a3a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ process:

##### Class Attributes for `SetBudgetCommand`:


| Class Attribute | Variable Type | Relevance |
|-----------------|---------------|---------------------------------------------------------------------|
| expenseList | ExpenseList | Object containing the list of expenses to check against set budgets |
Expand All @@ -1042,6 +1043,7 @@ The sequence of operations for an example input, `set budget c/Transport b/500`,

##### Class Attributes for `ListBudgetCommand`:


| Class Attribute | Variable Type | Relevance |
|-----------------|---------------|---------------------------------------------------------------------|
| expenseList | ExpenseList | Object containing the list of expenses to check against set budgets |
Expand All @@ -1056,6 +1058,8 @@ budget in `ExpenseList` using `setBudget`. Similarly, `ListBudgetCommand` will f
their budgets using `getBudgets`, and highlight those that are above the set budget.

##### Key Methods used from `ExpenseList`


| Method | Return Type | Relevance |
|-----------------------------|---------------|--------------------------------------------------------------------|
| setBudget(category, budget) | void | Sets or updates the budget for a given category in the ExpenseList |
Expand Down Expand Up @@ -1393,7 +1397,7 @@ type fast. It also provides the ability to deal with finances on a singular plat
### Use Case : Add a Recurring Expense List
1. User requests to add a recurring expense list with a specific name
2. BudgetBuddy creates a recurring expense list with the specified name
3. Use Case Ends.
3. use case ends.

#### Extensions
* 1a. Name is Empty
Expand All @@ -1409,7 +1413,7 @@ type fast. It also provides the ability to deal with finances on a singular plat
#### Extensions
* 1a. The list of all recurring expense lists is empty
* 1a1. BudgetBuddy states that no recurring expense lists has been added yet
* user case ends
* use case ends

<!-- @@author itsmejr257-->
### Use Case : Remove a recurring expense list
Expand Down
2 changes: 1 addition & 1 deletion docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ to deal with finances on a singular platform with ease as long as you can type f
1. Ensure that you have Java 11 installed.
2. Download the latest version of `BudgetBuddy` from [here](https://github.com/AY2324S2-CS2113-T12-3/tp).
3. Copy the file to the folder you want to use as the home folder.
4. Open command terminal, ``cd`` into the folder you put your jar file in, and use the `java -jar BudgetBuddy.jar`
4. Open command terminal, ``cd`` into the folder you put your jar file in, and use the `java -jar [CS2113-T12-3][BudgetBuddy].jar`
command to run the application.


Expand Down
Binary file removed docs/userguideimages/CurrencyConverter_ChangeUSD.PNG
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/java/seedu/budgetbuddy/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public RecurringExpenseLists loadRecurringExpensesList() throws IOException{
} catch (Exception e) {
LOGGER.log(Level.INFO, "Exception successfully caught. Error has been handled");
System.out.println("Error Detected : " + e.getMessage());
System.out.println("You Recurring Expenses File is corrupted, resetting the file....");
System.out.println("Your Recurring Expenses File is corrupted, resetting the file....");
resetRecurringExpensesListFile();
return new RecurringExpenseLists();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private String getCategory(String category) throws BudgetBuddyException{
}

throw new BudgetBuddyException("Please ensure the category is a valid category\n" +
"Valid Categories : Entertainment, Housing, Groceries, Utility, Transport, Other");
"Valid Categories : Entertainment, Housing, Groceries, Utility, Transport, Others");
}
/**
* Parses the category from the input string
Expand Down

0 comments on commit 2895a3a

Please sign in to comment.