forked from nus-cs2103-AY1920S1/addressbook-level3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from AY1920S1-CS2103-T14-4/New_Add_Budget
Update Dg
- Loading branch information
Showing
14 changed files
with
185 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@startuml | ||
start | ||
:User executes AddExpense command; | ||
'diamond | ||
if () then ([budget does not exist]) | ||
'diamond | ||
if () then ([budget period doesn't clash with existing budgets]) | ||
: add budget into the budget list; | ||
: Update UI; | ||
: Save default expense list and budget list; | ||
else ([else]) | ||
: user receives budget clash message; | ||
endif | ||
else ([else]) | ||
: user receives budget duplicate message; | ||
endif | ||
stop | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@startuml | ||
start | ||
:User executes AddExpense command; | ||
|
||
'diamond | ||
if () then ([expense does not exist]) | ||
'diamond | ||
if () then ([expense falls into a budget period]) | ||
: get budget which expense falls into; | ||
: add expense into the budget; | ||
|
||
else ([else]) | ||
: add expense into default expense list; | ||
endif | ||
:Update UI; | ||
:Save default expense list and budget list; | ||
else ([else]) | ||
: user receives expense duplicate message; | ||
endif | ||
stop | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor MODEL_COLOR | ||
skinparam classBackgroundColor MODEL_COLOR | ||
|
||
Class Budget | ||
Class Amount | ||
Class Currency | ||
Class Date | ||
Class Name | ||
Class ExpenseList | ||
|
||
Budget *--> "1" Name | ||
Budget *--> "2" Amount | ||
Budget *--> "2" Date | ||
Budget *--> "1" Currency | ||
Budget *--> "1" ExpenseList | ||
|
||
Name -[hidden]right-> Amount | ||
Amount -[hidden]right-> Date | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@startuml | ||
object ":Budget" as o | ||
object "name:Name" as o2 | ||
object "currency:Currency" as o3 | ||
object "startDate:Date" as o4 | ||
object "endDate:Date" as o5 | ||
object "amount:Amount" as o6 | ||
object "amountLeft:Amount" as o7 | ||
object "expenseList:ExpenseList" as o8 | ||
object "expenses:UniqueExpenseList" as o9 | ||
|
||
|
||
o2 : fullName = "Japan Travel" | ||
o3 : name = "JPY" | ||
o4 : value = "12 Dec 2019" | ||
o5 : value = "18 Dec 2019" | ||
o6 : value = "9500" | ||
o7 : value = "9500" | ||
|
||
o --> o2 | ||
o --> o3 | ||
o --> o4 | ||
o --> o5 | ||
o --> o6 | ||
o --> o7 | ||
o --> o8 | ||
o8 --> o9 | ||
|
||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters