Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS2113-W14-3] FinanceBuddy #25

Open
wants to merge 947 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
947 commits
Select commit Hold shift + click to select a range
6daeb24
Fix checkStyle
tsoudibi Nov 9, 2024
8a948b1
Update DateParser
JuvenLimHY Nov 9, 2024
17ce099
Edit UG
JuvenLimHY Nov 9, 2024
c6dd537
Add no / in description
JuvenLimHY Nov 9, 2024
a653485
Update date format dd/MM/yyyy
JuvenLimHY Nov 9, 2024
d95a584
Update year to yyyy
JuvenLimHY Nov 10, 2024
008c5eb
Update PPP
JuvenLimHY Nov 10, 2024
176886f
Merge pull request #280 from Littleme1032/Littleme1032-Juven-edit-ppp
JuvenLimHY Nov 10, 2024
1e0f67d
Merge branch 'master' into Budget
ctzeyong Nov 10, 2024
1f00a8c
Update budget prompting to user on startup
ctzeyong Nov 10, 2024
f27b49a
Add line breaks in Help sample output
limkongkiat Nov 10, 2024
8315007
Merge pull request #275 from limkongkiat/update-UG-post-ped
limkongkiat Nov 10, 2024
dab656e
Update when balance recalculation is done
ctzeyong Nov 10, 2024
9256451
Prevent budget amount from exceeding 9 999 999
ctzeyong Nov 10, 2024
40ff2e3
Minor refactoring of method name to more appropriately suit what it does
ctzeyong Nov 10, 2024
7ef1e6c
Update JUnit tests for added functionality
ctzeyong Nov 10, 2024
de52b72
Update JavaDoc for new methods and JUnit tests
ctzeyong Nov 10, 2024
9380945
Merge pull request #277 from tsoudibi/add-storage-feedback
tsoudibi Nov 10, 2024
6cab419
Update edit UG
tsoudibi Nov 10, 2024
024bc80
Seperate SD into 2
tsoudibi Nov 10, 2024
4c7e172
Merge branch 'master' into Littleme1032-juven-add-Date-Time-Feature
JuvenLimHY Nov 10, 2024
92d8484
Edit test case
JuvenLimHY Nov 10, 2024
08b3301
Merge pull request #276 from limkongkiat/bugfix-edit-out-of-position
limkongkiat Nov 10, 2024
3083d81
Edit UG
JuvenLimHY Nov 10, 2024
73fd350
Merge pull request #279 from Littleme1032/Littleme1032-juven-add-Date…
JuvenLimHY Nov 10, 2024
3870f7d
Merge pull request #278 from Littleme1032/Littleme1032-Juven-edit-UG
JuvenLimHY Nov 10, 2024
4aa407d
Change list command to show global index instead of relative index
limkongkiat Nov 10, 2024
f2a4d1b
Change displayed indexes and add total count for tests for `list`
limkongkiat Nov 10, 2024
f71dcab
Saves budget and balance amount as 2dp
ctzeyong Nov 10, 2024
d365f4c
Ensure budget and balance amounts are displayed the correct number of…
ctzeyong Nov 10, 2024
91802e0
Update JUnit tests
ctzeyong Nov 10, 2024
0fba07a
Update JavaDoc
ctzeyong Nov 10, 2024
799f5a8
Minor checkstyle edit
ctzeyong Nov 10, 2024
f40d050
Merge branch 'master' into update-ug-dg
tsoudibi Nov 10, 2024
16e782a
Merge pull request #282 from tsoudibi/update-ug-dg
tsoudibi Nov 10, 2024
2168791
Update Javadoc comment for execute method of SeeAllEntriesCommand
limkongkiat Nov 10, 2024
6c03b89
Add test for SeeAllEntriesCommand to check handling of null list
limkongkiat Nov 10, 2024
57b5fa2
Extract repeated code in list command tests
limkongkiat Nov 10, 2024
aa9d5cd
Update test in Logic for handling list command
limkongkiat Nov 10, 2024
f9e8b47
Reduce magic strings in list command tests
limkongkiat Nov 10, 2024
287c85f
Extract repeated code in SeeAllEntriesCommandTest into new method
limkongkiat Nov 10, 2024
ec98a1d
Reduce magic strings in SeeAllEntriesCommandTest
limkongkiat Nov 10, 2024
dc2189b
Add Javadoc comments for helper function in SeeAllExpensesCommandTest
limkongkiat Nov 10, 2024
3474631
Add JUnit test for input parser
kestryix Nov 10, 2024
5f187db
Add DeleteAll Feature
JuvenLimHY Nov 10, 2024
cc7e1f5
Edit checkstyle
JuvenLimHY Nov 10, 2024
8d16e61
Merge pull request #283 from limkongkiat/edit-show-global-index
limkongkiat Nov 10, 2024
fab7358
Modify budget command to take in argument
kestryix Nov 10, 2024
68ab5bd
Merge branch 'master' into app-budget
kestryix Nov 10, 2024
584e8f1
Fix checkstyle
kestryix Nov 10, 2024
ab15a52
Fix checkstyle
kestryix Nov 10, 2024
07fea91
Fix checkstyle
kestryix Nov 10, 2024
fe4909f
Fix checkstyle
kestryix Nov 10, 2024
9f4779a
Merge pull request #281 from ctzeyong/Budget
limkongkiat Nov 11, 2024
b7f2082
Update sequence diagrams for List command
limkongkiat Nov 11, 2024
1cfaf6f
Update examples for list command in UG
limkongkiat Nov 11, 2024
2df8d3a
Update PPP for Lim Kong Kiat
limkongkiat Nov 11, 2024
9846129
Merge branch 'master' into app-budget
kestryix Nov 11, 2024
a328691
Update description for list command in UG
limkongkiat Nov 11, 2024
f9a3e47
Fix checkstyle
kestryix Nov 11, 2024
bda2590
Fix checkstyle
kestryix Nov 11, 2024
c9158b9
Update boolean name
kestryix Nov 11, 2024
e1fca09
Merge pull request #285 from kestryix/app-budget
kestryix Nov 11, 2024
61e5540
Add function to delete Files
tsoudibi Nov 11, 2024
ef9d710
Add check to limit financial list to 5000 entries maximum
limkongkiat Nov 11, 2024
37b4801
Add test for AddExpenseCommand to test 5000-entry limit
limkongkiat Nov 11, 2024
7320445
Add test for AddIncomeCommand to test 5000 entry limit
limkongkiat Nov 11, 2024
1db2699
Add error signature to SeeAllExpensesCommandTest method
limkongkiat Nov 11, 2024
e95e3fd
Add test to ensure edit entry works with full list of 5000 entries
limkongkiat Nov 11, 2024
437b04d
Fix junit
tsoudibi Nov 11, 2024
e0ee0da
Make minor edits to pass checkstyle
limkongkiat Nov 11, 2024
b4059fa
Merge pull request #288 from tsoudibi/add-delete-budget-storage
tsoudibi Nov 11, 2024
ec6585a
Update reposense link
kestryix Nov 11, 2024
8e9cccd
Add back Storage files
limkongkiat Nov 11, 2024
7cd6a7c
Merge pull request #287 from limkongkiat/update-UG-DG-list-entries
limkongkiat Nov 11, 2024
1473a28
Update storage when budget deleted
kestryix Nov 11, 2024
c539957
Update output when no budget file
tsoudibi Nov 11, 2024
f3df457
Fix checkStyle
tsoudibi Nov 11, 2024
51bc686
Fix typo
tsoudibi Nov 11, 2024
a735394
Fix junit
tsoudibi Nov 11, 2024
72b713f
Merge pull request #291 from tsoudibi/fix-storage-output
tsoudibi Nov 11, 2024
8aca254
Merge branch 'refs/heads/master' into app-budget
kestryix Nov 11, 2024
66eb469
Update storage when budget deleted
kestryix Nov 11, 2024
74c9aff
Update PPP
kestryix Nov 11, 2024
7b05e5b
Merge pull request #293 from kestryix/verity-ppp
kestryix Nov 11, 2024
76804b1
Add function to delete range
JuvenLimHY Nov 11, 2024
1fa67d9
Merge pull request #289 from limkongkiat/limit-max-entries
limkongkiat Nov 11, 2024
6d84e0e
Revert back indextoAmend
JuvenLimHY Nov 11, 2024
c4400d4
Merge branch 'master' into PPP
ctzeyong Nov 11, 2024
721da01
Fix bug
kestryix Nov 11, 2024
d96f2ef
Merge pull request #284 from Littleme1032/Littleme1032-juven-DeleteAll
limkongkiat Nov 11, 2024
50f14b3
Merge pull request #292 from kestryix/app-budget
kestryix Nov 11, 2024
09a0325
Fix error message
kestryix Nov 11, 2024
9ecea30
Update PPP
ctzeyong Nov 11, 2024
650f345
Merge branch 'master' into Budget
ctzeyong Nov 11, 2024
c2709ea
Modify storage warning
tsoudibi Nov 11, 2024
0c2e51d
Merge pull request #301 from tsoudibi/edit-storage-file-warning
tsoudibi Nov 11, 2024
fae164e
Fix checkstyle
kestryix Nov 11, 2024
026d5f5
Fix testcase
kestryix Nov 11, 2024
77f43b4
Merge pull request #302 from kestryix/app-budget
kestryix Nov 11, 2024
99ec472
Update logic to prompt user to set budget
ctzeyong Nov 11, 2024
615c7e5
Merge remote-tracking branch 'upstream/master' into Budget
ctzeyong Nov 11, 2024
b9c2ef9
Update logic on whether to print balance amount
ctzeyong Nov 11, 2024
2bf749a
Update Help Command and corresponding test
limkongkiat Nov 11, 2024
6b337bc
Update balance recalculation order when setting budget
ctzeyong Nov 11, 2024
9ce4cc1
Edit budget command description in Help command
limkongkiat Nov 11, 2024
b5df063
Edit logic for prompting user to set budget to prevent null
ctzeyong Nov 11, 2024
1fa397e
Update JavaDoc
ctzeyong Nov 11, 2024
bb92c84
Merge pull request #304 from ctzeyong/Budget
ctzeyong Nov 11, 2024
242f249
Update msg
tsoudibi Nov 11, 2024
b5761af
Update Junit
tsoudibi Nov 11, 2024
e64da86
Merge pull request #305 from tsoudibi/update-storage-msg
tsoudibi Nov 11, 2024
3ea215b
Add check to ensure that entry is not unchanged after edit command
limkongkiat Nov 11, 2024
eeeb222
Extract error message to Commons class
limkongkiat Nov 11, 2024
4bf8f69
Change BUDGET to AMOUNT in Help message
limkongkiat Nov 11, 2024
cdb7dd2
update ppp
tsoudibi Nov 11, 2024
37cb830
Merge pull request #303 from limkongkiat/update-help-command-111124
limkongkiat Nov 11, 2024
982c47c
Merge pull request #307 from limkongkiat/edit-command-check-if-changed
limkongkiat Nov 11, 2024
8e468fc
Update content
tsoudibi Nov 11, 2024
9aab3a6
Merge pull request #308 from tsoudibi/tony-update-ppp
tsoudibi Nov 11, 2024
8ce25c7
PPP update
ctzeyong Nov 11, 2024
e1d22db
Merge pull request #309 from ctzeyong/PPP
ctzeyong Nov 11, 2024
fe01a39
Update budget and command summary sections
kestryix Nov 11, 2024
5295c69
Merge branch 'master' into UserGuide
ctzeyong Nov 11, 2024
c887edc
Update UG
ctzeyong Nov 11, 2024
04a6cc0
Merge pull request #310 from kestryix/verity-ug
kestryix Nov 11, 2024
3d49c1d
Merge pull request #311 from ctzeyong/UserGuide
ctzeyong Nov 11, 2024
7bf0214
Update logic sequence diagram
kestryix Nov 11, 2024
b94d1d1
Fix bugs related to delete command
limkongkiat Nov 11, 2024
da02cc9
Fix checkstyle errors
limkongkiat Nov 11, 2024
62bfce5
Update Storage UG and DG
tsoudibi Nov 11, 2024
75fc784
Merge pull request #312 from limkongkiat/fix-delete-bugs
limkongkiat Nov 11, 2024
f3f09c5
Update DG
ctzeyong Nov 11, 2024
d04524c
Merge branch 'master' into DeveloperGuide
ctzeyong Nov 11, 2024
7177983
Add more use cases in DG
tsoudibi Nov 11, 2024
35cfbd4
Update comment of storage
tsoudibi Nov 11, 2024
05d6787
Add another use case
tsoudibi Nov 11, 2024
d07a08f
Update ui, parser and logic sections based on current code
kestryix Nov 11, 2024
1351928
Extract constants and rounding method into Commons class
limkongkiat Nov 11, 2024
ee3b684
Add Javadoc comments for Commons class
limkongkiat Nov 11, 2024
94e3c89
Merge pull request #314 from kestryix/verity-dg
kestryix Nov 11, 2024
3873622
Add duplicate argument detection to input parser
kestryix Nov 11, 2024
50617b6
Merge pull request #315 from limkongkiat/update-commons
limkongkiat Nov 11, 2024
982fe67
Merge branch 'master' into app-budget
kestryix Nov 11, 2024
b70c89e
Fix checkstyle
kestryix Nov 11, 2024
4e239b3
Merge pull request #316 from kestryix/app-budget
kestryix Nov 11, 2024
cb402c7
Update PPP format
kestryix Nov 11, 2024
083e1e5
DG update
ctzeyong Nov 11, 2024
b3bd236
Merge branch 'master' into Budget
ctzeyong Nov 11, 2024
795766f
Merge pull request #317 from kestryix/verity-ppp
kestryix Nov 11, 2024
c1968e0
Update prompting when budget was set in a previous month
ctzeyong Nov 11, 2024
65eb959
Update JUnit test
ctzeyong Nov 11, 2024
17eb26f
Merge pull request #319 from ctzeyong/DeveloperGuide
ctzeyong Nov 11, 2024
4013ba4
Merge pull request #318 from ctzeyong/Budget
ctzeyong Nov 11, 2024
2ca1625
Update Edit UG
tsoudibi Nov 11, 2024
68d3364
Update comtent
tsoudibi Nov 11, 2024
fc637f4
Fix typo
tsoudibi Nov 11, 2024
ee8701f
Add newlines
tsoudibi Nov 11, 2024
55e15eb
Merge pull request #313 from tsoudibi/tony-update-ug-dg-v3
tsoudibi Nov 11, 2024
258fff9
DG update
ctzeyong Nov 11, 2024
80bfb78
Merge pull request #320 from ctzeyong/master
ctzeyong Nov 11, 2024
bb0d346
update typo
tsoudibi Nov 11, 2024
2e97841
Merge branch 'master' into PPP
ctzeyong Nov 11, 2024
279a37e
Merge pull request #321 from tsoudibi/tony-update-ug-again
tsoudibi Nov 11, 2024
580d04e
Update PPP
ctzeyong Nov 11, 2024
27c9f52
Update Command Summary of UG
limkongkiat Nov 11, 2024
10b662b
Update List Entries section of UG
limkongkiat Nov 11, 2024
757912f
Update Headers for Set/Edit Budget examples in UG
limkongkiat Nov 11, 2024
6d9e4dd
Update Overview and Implementation Section of DG
limkongkiat Nov 11, 2024
27118e6
Update User Stories and Product Scope
limkongkiat Nov 11, 2024
18b0fb9
Add Future Enhancements Section to DG
limkongkiat Nov 11, 2024
c36f902
Add Future Enhancements to Table of Contents in DG
limkongkiat Nov 11, 2024
f4385e6
Fix typo in PPP
limkongkiat Nov 11, 2024
40eab19
Update description in Overview section of DG
limkongkiat Nov 11, 2024
9c55b44
Update Delete
JuvenLimHY Nov 11, 2024
c7c69d6
Merge pull request #322 from limkongkiat/update-UG-DG-PPP-kk
limkongkiat Nov 11, 2024
e842b95
Update DG
JuvenLimHY Nov 11, 2024
deaddde
Update UserGuide.md
JuvenLimHY Nov 11, 2024
3883396
Merge branch 'master' into DeveloperGuide
ctzeyong Nov 12, 2024
8f83bfa
DG update
ctzeyong Nov 12, 2024
5b48acc
Update PPP
limkongkiat Nov 12, 2024
d3dac9a
Format User Guide sections
limkongkiat Nov 12, 2024
87afc56
Update diagram in DG
limkongkiat Nov 12, 2024
8ab16cf
Merge pull request #323 from Littleme1032/Littleme1032-juven-UG-DG
JuvenLimHY Nov 12, 2024
e7c6f83
Reorganize User Stories in DG
limkongkiat Nov 12, 2024
c475dce
UML sequence diagram update
ctzeyong Nov 12, 2024
4b39693
Logging update for DG
ctzeyong Nov 12, 2024
19130c9
Merge pull request #324 from ctzeyong/DeveloperGuide
ctzeyong Nov 12, 2024
5f6b2ac
Merge branch 'master' into PPP
ctzeyong Nov 12, 2024
e90b7c0
Update PPP
limkongkiat Nov 12, 2024
f11bbfb
Update PPP
ctzeyong Nov 12, 2024
bdbaa54
Merge pull request #325 from ctzeyong/PPP
ctzeyong Nov 12, 2024
63fc48f
Merge pull request #326 from limkongkiat/update-docs
limkongkiat Nov 12, 2024
f6202f5
Update Ui Parser Diagram
kestryix Nov 12, 2024
0ee8283
Merge pull request #327 from kestryix/verity-dg
kestryix Nov 12, 2024
a24834c
Update PPP
kestryix Nov 12, 2024
2d03f56
Merge pull request #328 from kestryix/verity-ppp
kestryix Nov 12, 2024
cead520
Removed duplicate
JuvenLimHY Nov 12, 2024
f60f4b1
Update UserGuide.md
JuvenLimHY Nov 12, 2024
b507a9e
changed all to dd/MM/yyyy
JuvenLimHY Nov 12, 2024
c73894a
Update example
JuvenLimHY Nov 12, 2024
044282f
Update about us
kestryix Nov 12, 2024
d6674be
Merge pull request #330 from kestryix/verity-ppp
kestryix Nov 12, 2024
2f126a0
Update PPP format
kestryix Nov 12, 2024
5add58a
Merge branch 'master' into DeveloperGuide
ctzeyong Nov 12, 2024
0bb1ad7
Merge pull request #331 from kestryix/verity-ppp
kestryix Nov 12, 2024
7a59358
Change Finance Buddy to FinanceBuddy
ctzeyong Nov 12, 2024
cb16050
ADD last amended transaction to DU and fix UG typo
tsoudibi Nov 12, 2024
13bfa96
Merge pull request #332 from tsoudibi/fix-ug-typo
tsoudibi Nov 12, 2024
4c98ca0
Minor formatting fix
ctzeyong Nov 12, 2024
97683b1
Cleaning up Notes
JuvenLimHY Nov 12, 2024
8ae939e
Update line
JuvenLimHY Nov 12, 2024
df3f265
Edit DG
ctzeyong Nov 12, 2024
d860ea7
Merge pull request #333 from ctzeyong/DeveloperGuide
ctzeyong Nov 12, 2024
7a551ed
Merge pull request #329 from Littleme1032/UG-duplicate
JuvenLimHY Nov 12, 2024
10dfb29
Merge branch 'master' into PPP
ctzeyong Nov 12, 2024
e263015
Update PPP
ctzeyong Nov 12, 2024
247a3da
Merge pull request #334 from ctzeyong/PPP
ctzeyong Nov 12, 2024
d07536d
Update DG
limkongkiat Nov 12, 2024
808153d
Update PPP
ctzeyong Nov 12, 2024
03e5102
Update DG
limkongkiat Nov 12, 2024
b7a4d05
Update Diagrams
limkongkiat Nov 12, 2024
7f36391
Merge pull request #335 from ctzeyong/PPP
ctzeyong Nov 12, 2024
e6a58ff
Merge branch 'master' into DeveloperGuide
ctzeyong Nov 12, 2024
e47c51d
Update add transaction
JuvenLimHY Nov 12, 2024
e6eea66
Update DG UML
ctzeyong Nov 12, 2024
d5039a9
update
JuvenLimHY Nov 12, 2024
6f18e97
Add Page Break to DG
limkongkiat Nov 12, 2024
80b58bd
Merge pull request #337 from ctzeyong/DeveloperGuide
ctzeyong Nov 12, 2024
ea2e0d1
Remove extra colon in Contents Page
limkongkiat Nov 12, 2024
be2e13c
Merge pull request #338 from limkongkiat/update-DG-final
limkongkiat Nov 12, 2024
cb92e18
Merge pull request #336 from Littleme1032/UG-duplicate
limkongkiat Nov 12, 2024
7cbd9eb
update
JuvenLimHY Nov 12, 2024
9a57cfd
Merge pull request #339 from Littleme1032/UG-duplicate
JuvenLimHY Nov 12, 2024
01135ba
Update UserGuide.md
JuvenLimHY Nov 12, 2024
8dcc1b9
Merge pull request #340 from Littleme1032/UG-duplicate
JuvenLimHY Nov 12, 2024
2166909
update
JuvenLimHY Nov 12, 2024
af61259
Merge pull request #341 from Littleme1032/Ug-update
JuvenLimHY Nov 12, 2024
acacb64
update
JuvenLimHY Nov 12, 2024
3f92d65
Merge pull request #342 from Littleme1032/Ug-update
JuvenLimHY Nov 12, 2024
b383b4b
Update PPP
limkongkiat Nov 12, 2024
a65d50f
Merge branch 'master' into DeveloperGuide
ctzeyong Nov 12, 2024
a99f9ac
Merge pull request #343 from limkongkiat/final-update-ppp
limkongkiat Nov 12, 2024
4f997a0
Fix broken links
ctzeyong Nov 12, 2024
817ddfe
Merge pull request #344 from ctzeyong/DeveloperGuide
ctzeyong Nov 12, 2024
b7776fb
Merge branch 'master' into UserGuide
ctzeyong Nov 12, 2024
52eaf5f
Minor bug fix
ctzeyong Nov 12, 2024
b3a1fb8
Merge pull request #345 from ctzeyong/UserGuide
ctzeyong Nov 12, 2024
a28d310
Update UG
limkongkiat Nov 12, 2024
2af99fb
Merge pull request #346 from limkongkiat/last-update-ug
limkongkiat Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ bin/

/text-ui-test/ACTUAL.TXT
text-ui-test/EXPECTED-UNIX.TXT

.vscode/

data/
data/FinancialList.txt
data/Budget.txt
META-INF/MANIFEST.MF
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ checkstyle {

run{
standardInput = System.in
enableAssertions = true
}
15 changes: 8 additions & 7 deletions docs/AboutUs.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# About us

Display | Name | Github Profile | Portfolio
--------|:----:|:--------------:|:---------:
![](https://via.placeholder.com/100.png?text=Photo) | John Doe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Joe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Ron John | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | John Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
Display | Name | Github Profile | Portfolio
--------|:-----------------:|:-----------------------------------------:|:---------:
![](https://via.placeholder.com/100.png?text=Photo) | Juven Lim Heng Yi | [Github](https://github.com/Littleme1032) | [Portfolio](team/juvenlim.md)
![](https://via.placeholder.com/100.png?text=Photo) | Verity Lim | [Github](https://github.com/kestryix) | [Portfolio](team/kestryix.md)
![](https://via.placeholder.com/100.png?text=Photo) | Lim Kong Kiat | [Github](https://github.com/limkongkiat) | [Portfolio](team/limkongkiat.md)
![](https://via.placeholder.com/100.png?text=Photo) | Tsou Teng Yuan | [Github](https://github.com/tsoudibi) | [Portfolio](team/tengyuantsou.md)
![](https://via.placeholder.com/100.png?text=Photo) | Cheng Tze Yong | [Github](https://github.com/ctzeyong) | [Portfolio](team/ctzeyong.md)

1,251 changes: 1,237 additions & 14 deletions docs/DeveloperGuide.md
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no example of input and output screenshots for the explanation with the DG.

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Duke
# Finance Buddy

{Give product intro here}
Finance Buddy is a software that allows university students to log their daily expenditures
to help manage their budgets. Users can add, delete and edit expenditure logs into the app as
well as list out all their logged transactions

Useful links:
* [User Guide](UserGuide.md)
Expand Down
Binary file added docs/UML/Budget.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/UML/Command.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/UML/CommandInheritance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions docs/UML/CommandInheritance.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@startuml

abstract class Command {
{abstract}+execute() : void
}

class SeeAllEntriesCommand {
}

class SeeAllExpensesCommand {
}

class SeeAllIncomesCommand {
}

class AddExpenseCommand {
}

class AddIncomeCommand {
}

class DeleteCommand {
}

class EditEntryCommand {
}

class ExitCommand {
}

class HelpCommand {
}

Command <|-- SeeAllEntriesCommand
SeeAllEntriesCommand <|-- SeeAllExpensesCommand
SeeAllEntriesCommand <|-- SeeAllIncomesCommand
Command <|-- AddExpenseCommand
Command <|-- AddIncomeCommand
Command <|-- DeleteCommand
Command <|-- EditEntryCommand
Command <|-- ExitCommand
Command <|-- HelpCommand

@enduml
Binary file added docs/UML/DeleteCommandSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions docs/UML/DeleteCommandSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@startuml
actor User
participant "Logic" as L
participant "DeleteCommand" as DC
participant "FinancialList" as FL
participant "BudgetLogic" as B
participant "Storage" as ST

User -> L: Enters "delete [INDEX] [/to ENDINDEX]"
activate L

alt Single Entry Deletion
L -> DC: Create DeleteCommand for INDEX
activate DC
DC -> FL: Remove entry at INDEX
deactivate DC
opt If entry is an Expense
L -> B: Update budget balance
end
else Range Deletion
loop For each entry in range [INDEX, ENDINDEX]
L -> FL: Remove entry at current index
opt If entry is an Expense
L -> B: Update budget balance
end
end
else Delete Last Amended
L -> FL: Remove last amended transaction
opt If entry is an Expense
L -> B: Update budget balance
end
else Delete All
L -> FL: Clear all entries
opt If expenses are cleared
L -> B: Reset budget balance
end
end

L -> ST: Update storage with FinancialList and BudgetLogic
ST --> L: Acknowledge update completion

L -> User: Display confirmation message
deactivate L
@enduml
Binary file added docs/UML/FinancialClassDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions docs/UML/FinancialEntryClass.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@startuml
abstract class FinancialEntry {
- double amount
- LocalDate date
- String description
+ getAmount() : double
+ getDescription() : String
+ getDate() : LocalDate
+ setAmount(double newAmount)
+ setDescription(String newDescription)
+ setDate(LocalDate newDate)
}

class Income {
+ toString() : String
+ toStorageString() : String
}

class Expense {
+ toString() : String
+ toStorageString() : String
}

FinancialEntry <|-- Income
FinancialEntry <|-- Expense

@enduml
Binary file added docs/UML/FinancialEntrySequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions docs/UML/FinancialEntrySequence.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
@startuml
skinparam sequenceMessageAlign center
skinparam responseMessageBelowArrow true


participant "FinancialList" as list
participant "FinancialEntry" as entry
participant "Income" as income
participant "Expense" as expense

== Add Entry ==
activate list
list -> list : shouldDecrementIndex(entry, index)
loop while shouldDecrementIndex == true
list -> entry : getDate()
list -> entry : getDate() for previous entry
return date
end
list -> entry : add(insertIndex, entry)
list -> list : updateCategoryTotal(entry)
alt entry instanceof Income
list -> income : instanceof?
return isIncome
list -> list : updateCategoryTotal(Income)
else entry instanceof Expense
list -> expense : instanceof?
return isExpense
list -> list : updateCategoryTotal(Expense)
end
deactivate list

== Delete Entry ==
list -> list : deleteEntry(index)
activate list
list -> entry : remove(index)
return
deactivate list

== Edit Entry ==
list -> list : getEntry(index)
activate list
list -> entry : setAmount(newAmount)
deactivate list
entry -> entry : setDescription(newDescription)
entry -> entry : setDate(newDate)
alt entry instanceof Income
entry -> income : setCategory(newCategory as Income.Category)
return
else entry instanceof Expense
entry -> expense : setCategory(newCategory as Expense.Category)
return
end

== View Entry ==
list -> list : getEntry(index)
activate list
list -> entry : toString()
deactivate list
alt entry instanceof Income
entry -> income : toString()
return incomeString
else entry instanceof Expense
entry -> expense : toString()
return expenseString
end

@enduml
43 changes: 43 additions & 0 deletions docs/UML/FinancialListAndFinancialEntry.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

@startuml
abstract class FinancialEntry {
- String description
- double amount
- LocalDate date
{abstract} + getCategory() : Enum<>
}

class FinancialList {
- ArrayList<FinancialEntry> entries
- Map<Expense.Category, Double> totalExpenseByCategory
- Map<Income.Category, Double> totalIncomeByCategory
+ FinancialList()
+ addEntry(FinancialEntry entry) : void
+ deleteEntry(int index) : void
+ editEntry(int index, double amount, String description, LocalDate date, Enum<?> category) : void
+ getEntry(int index) : FinancialEntry
+ getEntryCount() : int
+ getTotalExpenseByCategory() : Map<Expense.Category, Double>
+ getTotalIncomeByCategory() : Map<Income.Category, Double>
+ getHighestExpenseCategory() : Map.Entry<Expense.Category, Double>
+ getHighestIncomeCategory() : Map.Entry<Income.Category, Double>
+ clearCategoryTotals() : void
}

class Income {
- Category category
+ Income(double amount, String description, LocalDate date, Category category)
+ getCategory() : Income.Category
}

class Expense {
- Category category
+ Expense(double amount, String description, LocalDate date, Category category)
+ getCategory() : Expense.Category
}

FinancialList "1" --> "*" FinancialEntry
FinancialEntry <|-- Income
FinancialEntry <|-- Expense

@enduml
Binary file added docs/UML/Log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/UML/LogicSequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions docs/UML/LogicSequence.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@startuml
actor User
User -> Logic : editEntry(commandArguments)
activate Logic

Logic -> Logic : parseIndex(commandArguments.get("argument"))
Logic -> FinancialList : getEntry(index - 1)
activate FinancialList
FinancialList --> Logic : FinancialEntry (entry)
deactivate FinancialList

Logic -> Logic : parseAmountOrDefault(commandArguments.get("/a"), entry.getAmount())
Logic -> Logic : parseDateOrDefault(commandArguments.get("/d"), entry.getDate())

alt entry is Expense
Logic -> Logic : updateExpenseBalance(entry, amount, date)
Logic -> BudgetLogic : changeBalanceFromExpense(entry.getAmount(), entry.getDate())
activate BudgetLogic
BudgetLogic --> Logic : balance updated
deactivate BudgetLogic
Logic -> BudgetLogic : changeBalanceFromExpenseString(-amount, date)
activate BudgetLogic
BudgetLogic --> Logic : balance updated
deactivate BudgetLogic
end

Logic -> Logic : getCategoryFromInput(commandArguments, entry)
alt category specified
Logic -> Logic : parseCategory(categoryStr, entry)
end
@enduml

@startuml
Logic -> EditEntryCommand ** : new EditEntryCommand(index, amount, description, date, category)

ref over EditEntryCommand : Run command
EditEntryCommand --> Logic : Command successfully executed


Logic --> User : Entry edited successfully
deactivate Logic
@enduml
Binary file added docs/UML/SeeAllEntriesCreateCommand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/UML/SeeAllEntriesExecution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions docs/UML/SeeAllEntriesExecution.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
@startuml
skinparam sequenceMessageAlign center
skinparam responseMessageBelowArrow true

participant ":SeeAllEntriesCommand" as cmd
participant "financialList:FinancialList" as list
participant ":FinancialEntry" as entry




cmd -> list : clear Category totals
activate list
return

cmd -> list : getEntryCount()
activate list
return financialListEntryCount

loop i < financialListEntryCount
cmd -> list : getEntry(i)
activate list
return entry

cmd -> cmd : shouldBeIncluded(entry)
activate cmd
return decision to include entry

opt entry should be included
cmd -> cmd : increment this.entryCount
activate cmd
return

cmd -> entry : toString()
activate entry
return entryString
cmd -> cmd : append to entryList
activate cmd
return

cmd -> cmd : add/substract amount from net cashflow
activate cmd
return
cmd -> list : update total expense/income in category
activate list
return
end
end

alt this.entryCount == 0
cmd -> cmd : print no entry message
activate cmd
return
else else
cmd -> cmd: print entryList with net cashflow
activate cmd
return
cmd -> list : getHighestExpenseCategory()
activate list
return highestExpenseCategory
cmd -> list : getHighestIncomeCategory()
activate list
return highestIncomeCategory
cmd --> cmd: print Highest Expense/Income category and amount spent/earned
activate cmd
return
end

@enduml
Binary file added docs/UML/SeeAllEntriesGetArguments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/UML/SeeAllEntriesOverview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading