Skip to content

Commit

Permalink
Merge pull request #161 from anqichen9856/master
Browse files Browse the repository at this point in the history
Update UG and fix wrong panel shown after DeleteBudgetByNameCommand
  • Loading branch information
anqichen9856 committed Oct 31, 2019
2 parents 7b2f8a8 + efcfada commit c56db9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/UserGuide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,12 @@ Tips:
Don't feel like living on budgets any more? You can clear them all, just by a simple command:
`clearbudgets`.

Tips:

* The Default Budget cannot be deleted or modified. It holds all expenses without a proper budget defined by you.
* For testers: delete /data folder, and restart MooLah, to get it populated with sample expenses and budgets
again for further testing.

==== View expenses in a different period: `switchperiod`
Wanna see your archived expenses in the past? The command `switchperiod` is the time machine you need.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.Model;
import seedu.address.model.expense.Description;
import seedu.address.ui.budget.BudgetPanel;
import seedu.address.ui.budget.BudgetListPanel;

/**
* Deletes a budget identified by name.
Expand Down Expand Up @@ -58,7 +58,7 @@ protected CommandResult execute(Model model) {

model.deleteBudgetWithName(description);
return new CommandResult(String.format(MESSAGE_DELETE_BUDGET_SUCCESS, description),
BudgetPanel.PANEL_NAME);
BudgetListPanel.PANEL_NAME);
}

@Override
Expand Down

0 comments on commit c56db9d

Please sign in to comment.