By: CS2103JAN18-T11-B4
Since: Jun 2016
Licence: MIT
- 1. Introduction
- 2. Quick Start
- 3. Features
- 3.1. Viewing help :
help
orh
- 3.2. Adding a person:
add
ora
- 3.3. Listing all persons :
list
orl
- 3.4. Editing a person :
edit
ore
- 3.5. Locating persons by name:
find
orf
- 3.6. Deleting a person :
delete
ord
- 3.7. Selecting a person :
select
ors
- 3.8. Listing entered commands :
history
orhi
- 3.9. Undoing previous command :
undo
oru
- 3.10. Redoing the previously undone command :
redo
orr
- 3.11. Clearing all entries :
clear
orc
- 3.12. Exiting the program :
exit
- 3.13. Saving the data
- 3.14. Checking overall balance:
balance
orb
[Since v1.2] - 3.15. Seeing all the contacts that owe you money:
debt
orde
[Since v1.2] - 3.16. Seeing all the contacts to which you owe money:
lend
orle
[Since v1.2] - 3.17. Remove Tags:
removetag
orrt
[Since v1.2] - 3.18. Seeing which contact owes you the most:
max
ormx
[Since v1.2] - 3.19. Seeing which contact owes you the least:
min
ormi
[Since v1.2] - 3.20. Sorting all persons:
sort
orso
[Since v1.2] - 3.21. Splitting a bill:
split
orsp
[Since v1.3] - 3.22. Clear up everyone’s balance:
wipe
orw
[Since v1.3] - 3.23. Settling up your balance with a contact:
settle
orstl
[Since v1.3] - 3.24. Showing items related to a person :
itemshow
oris
[Since v1.4] - 3.25. Add a New Item :
itemadd
oria
[Since v1.4] - 3.26. Delete an Existing Item :
itemdelete
orid
[Since v1.5rc] - 3.27. Settling up your balance with a contact:
settle
orstl
[Since v1.3] - 3.28. Remind a contact to pay their balance:
remind
orrm
[Since v1.4] - 3.29. Delete an Existing Item :
itemdelete
orid
[Since v1.5rc] - 3.30. List of all contacts with a specific tag [Since v1.5rc]
- 3.31. Encrypting data files
[coming in v2.0]
- 3.32. Applies an interest rate to your balance:
interest FACTOR
ori FACTOR
[Coming in v2.0] - 3.33. Lists a description of the debts someone owes you:
describe
ordb
[Coming in v2.0] - 3.34. Report a transaction and automatically update a contact’s balance accordingly:
transaction
ort
[Since v1.5rc] - 3.35. Shows on which trip a balance was established from user and contact :
trip [DESTINATION]
ort
[Coming in v2.0] - 3.36. Change the color of a specific tag in the address book [Coming in V2.0]
- 3.1. Viewing help :
TravelBanker (TB) is for those who prefer to use a desktop app for managing the money owed by your fellow travellers *. More importantly, TB is *optimized for those who prefer to work with a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, TB can get your contact management tasks done faster than traditional GUI apps. Interested? Jump to the Section 2, “Quick Start” to get started. Enjoy!
-
Ensure you have Java version
1.8.0_60
or later installed in your Computer.ℹ️Having any Java 8 version is not enough.
This app will not work with earlier versions of Java 8. -
Download the latest
TravelBanker.jar
here. -
Copy the file to the folder you want to use as the home folder for your accounting book.
-
Double-click the file to start the app. The GUI should appear in a few seconds.
-
Type the command in the command box and press Enter to execute it.
e.g. typinghelp
and pressing Enter will open the help window. -
Some example commands you can try:
-
list
: lists all contacts -
add
n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-01
: adds a contact namedJohn Doe
to the accounting book. -
delete
3
: deletes the 3rd contact shown in the current list -
exit
: exits the app -
Except for
exit
, you can also use the first letter of each command to type faster (e.g.l
forlist
).
-
-
Refer to Section 3, “Features” for details of each command.
Command Format
-
Words in
UPPER_CASE
are the parameters to be supplied by the user e.g. inadd n/NAME
,NAME
is a parameter which can be used asadd n/John Doe
. -
Items in square brackets are optional e.g
n/NAME [t/TAG]
can be used asn/John Doe t/friend
or asn/John Doe
. -
Items with
…
after them can be used multiple times including zero times e.g.[t/TAG]…
can be used ast/friend
,t/friend t/family
etc. -
Parameters can be in any order e.g. if the command specifies
n/NAME p/PHONE_NUMBER
,p/PHONE_NUMBER n/NAME
is also acceptable.
Adds a person to the accounting book.
Format: add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS m/BALANCE [t/TAG]…
Format: a n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS m/BALANCE [t/TAG]…
💡
|
A person can have any number of tags (including 0) |
Examples:
-
add n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-01
m/23.78 -
add n/Betsy Crowe t/friend e/[email protected] a/Newgate Prison p/1234567 t/criminal m/0.0
-
a n/Betsy Crowe t/friend e/[email protected] a/Newgate Prison p/1234567 t/criminal m/-25.0
Shows a list of all persons in the accounting book.
Format: list
or l
Edits an existing person in the accounting book.
Format: edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [m/MONEY] [t/TAG]…
Format: e INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [m/MONEY] [t/TAG]…
-
Edits the person at the specified
INDEX
. The index refers to the index number shown in the last person listing. The index must be a positive integer 1, 2, 3, … -
At least one of the optional fields must be provided.
-
Existing values will be updated to the input values.
-
When editing tags, the existing tags of the person will be removed i.e adding of tags is not cumulative.
-
You can remove all the person’s tags by typing
t/
without specifying any tags after it.
Examples:
-
edit 1 p/91234567 e/[email protected]
Edits the phone number and email address of the 1st person to be91234567
and[email protected]
respectively. -
edit 2 n/Betsy Crower t/
ore 2 n/Betsy Crower t/
+ Edits the name of the 2nd person to beBetsy Crower
and clears all existing tags.
Finds persons whose names contain any of the given keywords.
Format: find KEYWORD [MORE_KEYWORDS]
or f KEYWORD [MORE_KEYWORDS]
-
The search is case insensitive. e.g
hans
will matchHans
-
The order of the keywords does not matter. e.g.
Hans Bo
will matchBo Hans
-
Only the name is searched.
-
Only full words will be matched e.g.
Han
will not matchHans
-
Persons matching at least one keyword will be returned (i.e.
OR
search). e.g.Hans Bo
will returnHans Gruber
,Bo Yang
Examples:
-
find John
Returnsjohn
andJohn Doe
-
find Betsy Tim John
Returns any person having namesBetsy
,Tim
, orJohn
Deletes the specified person from the accounting book.
Format: delete INDEX
or d INDEX
-
Deletes the person at the specified
INDEX
. -
The index refers to the index number shown in the most recent listing.
-
The index must be a positive integer 1, 2, 3, …
Examples:
-
list
delete 2
Deletes the 2nd person in the accounting book. -
find Betsy
delete 1
Deletes the 1st person in the results of thefind
command.d 1
Deletes the 1st person in the results of thefind
command.
Selects the person identified by the index number used in the last person listing and address displayed.
Format: select INDEX
or s INDEX
-
Selects the person at the specified
INDEX
. -
The index refers to the index number shown in the most recent listing.
-
The index must be a positive integer
1, 2, 3, …
Examples:
-
list
select 2
Selects the 2nd person in the accounting book. -
find Betsy
select 1
Selects the 1st person in the results of thefind
command.
Lists all the commands that you have entered in reverse chronological order.
Format: history
or hi
ℹ️
|
Pressing the ↑ and ↓ arrows will display the previous and next input respectively in the command box. |
Restores the accounting book to the state before the previous undoable command was executed.
Format: undo
ℹ️
|
Undoable commands: those commands that modify the accounting book’s content ( |
Examples:
-
delete 1
list
undo
oru
(reverses thedelete 1
command) -
select 1
list
undo
Theundo
command fails as there are no undoable commands executed previously. -
delete 1
clear
undo
(reverses theclear
command)
undo
(reverses thedelete 1
command)
Reverses the most recent undo
command.
Format: redo
Examples:
-
delete 1
undo
(reverses thedelete 1
command)
redo
(reapplies thedelete 1
command) -
delete 1
redo
Theredo
command fails as there are noundo
commands executed previously. -
delete 1
clear
undo
(reverses theclear
command)
undo
(reverses thedelete 1
command)
redo
(reapplies thedelete 1
command)
redo
(reapplies theclear
command)
Clears all entries from the accounting book.
Format: clear
or c
TravelBanker data are saved in the hard disk automatically after any command that changes the data.
There is no need to save manually.
Calculates your total balance. This value shows you the overall state of your finances: how much you owe minus
how much you’re owed.
Format: balance
or b
Lists all the contacts that owe you an amount.
Format: debt
or de
Lists all the contacts that owe you an amount.
Format: lend
or le
Remove Tags from a specific person in the TravelBanker.
Format: removetag INDEX [t/TAG]…
Format: rt INDEX [t/TAG]…
Examples:
-
removetag 1 t/owesMoney t/friends
Remove the tagsowesMoney
andfriends
from the first person.
Lists the contact which owes you the most money.
Format: max
Lists the contact to which you owe the most money.
Format: min
Sorts all persons in ascendingly or descendingly, ordering by the specified keywords.
Format: sort KEYWORD_PREFIX/ORDER
Format: so KEYWORD_PREFIX/ORDER
-
ORDER can only be asc or desc.
-
KERWORD_PREFIX can be n/ p/ e/ a/ t/ m/
-
When KEYWORD_PREFIX is specified as n/ p/ e/ or a/, corresponding filed will be sorted alphabetically.
-
When KEYWORD_PREFIX is specified as t/, people will be sorted according to the number of tags.
-
When KEYWORD_PREFIX is specified as m/, people will be sorted according to the value of money filed.
Examples:
-
sort n/asc
-
so m/desc
Splits a bill among multiple people, specified by their indices.
Format: split INDEX1 [INDEX2…] m/MONEY
Format: sp INDEX1 [INDEX2…] m/MONEY
Examples:
-
split 1 2 m/200
-
sp 1 2 3 m/400.00
Wipes everyone’s balances to 0.0
Format: wipe
Format: w
Sets the balance of the specified contact to 0.
Format: settle INDEX
=== Searching for the nearest ATM : map
or mp
[Since v1.3]
Displays a search for the nearest ATM in the browser panel.
Format: map
or mp
Show all items related to a person (specified by INDEX).
Format: itemshow INDEX
or is INDEX
-
The index refers to the index number shown in the most recent listing.
-
The index must be a positive integer
1, 2, 3, …
Examples:
-
list
itemshow 2
Shows items related to the 2nd person in the accounting book. -
find Betsy
itemshow 1
Shows item related to the 1st person in the results of thefind
command.
Attaching a new item to a specified person.
Format: itemadd INDEX n/ITEM_NAME m/MONEY
or ia INDEX n/ITEM_NAME m/MONEY
-
To view the newly added item, please use the
itemshow
command! -
The index refers to the index number shown in the most recent listing.
-
The index must be a positive integer
1, 2, 3, …
Examples:
-
itemadd 2 n/taxiFare m/10.0
Deleting an item from a specified person.
Format: itemdelete PERSON_INDEX ITEM_INDEX
or id PERSON_INDEX ITEM_INDEX
-
The index of person refers to the one shown in the most recent listing.
-
The index of item refers to the one shown in the
itemshow
result. -
The indices must be a positive integer
1, 2, 3, …
Examples:
-
itemdelete 1 2
-
This deletes the second item from the first person in the contact list.
Sets the balance of the specified contact to 0.
Format: settle INDEX
Opens the default email client with a generated email to the contact with the balance in the message.
Format: remind INDEX
=== View a contact’s address on the map with select
[Since v1.4]
Searches for the contact’s address in the map displayed once that contact is selected.
Format : select INDEX
=== Converts your balance in a desired currency: convert
or cv
[Since v1.4]
Converts an entries certain balance in a currency of your choice.
Format: convert
INDEX FROM_CURRENCY TO_CURRENCY` or cv
INDEX FROM_CURRENCY TO_CURRENCY
Example: convert 2 USD JPY
Example: convert 1 SGD USD
Deleting an item from a specified person.
Format: itemdelete PERSON_INDEX ITEM_INDEX
or id PERSON_INDEX ITEM_INDEX
-
The index of person refers to the one shown in the most recent listing.
-
The index of item refers to the one shown in the
itemshow
result. -
The indices must be a positive integer
1, 2, 3, …
Examples:
-
itemdelete 1 2
-
This deletes the second item from the first person in the contact list. === All similar tags now have a unique color [Since v1.5rc]
All similar tags found in TravelBanker now have a color specific to it.
User can have a list of all contacts that contain the specified tags.
Example: searchtag t/friends
Example: st t/colleagues t/friends
{explain how the user can enable/disable data encryption}
Displays your balance with an applied interest rate.
Format: interest FACTOR
or i FACTOR
Lists the description consisting of keywords that explain why someone owes you an amount.
This facilitates understanding of the debt.
Format: describe INDEX
3.34. Report a transaction and automatically update a contact’s balance accordingly: transaction
or t
[Since v1.5rc]
Updates the contacts balance with the correct new balance after the transaction.
For TRANSACTION_AMOUNT, a positive number represents money received from the contact and a negative number represents
money paid to the contact.
Format : transaction INDEX TRANSACTION_AMOUNT
3.35. Shows on which trip a balance was established from user and contact : trip [DESTINATION]
or t
[Coming in v2.0]
Each contact will have a [DESTINATION] field to keep track of where a transaction between the
user and the contact took place.
Format: trip [DESTINATION]
The user can select the color he wants a specific tag to be.
Format: colortag c/COLOR t/TAGS
or ct c/COLOR t/TAGS
== FAQ
Q: How do I transfer my data to another Computer?
A: Install the app in the other computer and overwrite the empty data file it creates with the file that contains the data of your previous accounting book folder.
== Command Summary
-
Add
add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]…
e.g.add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 t/friend t/colleague
-
Clear :
clear
-
Delete :
delete INDEX
e.g.delete 3
-
Balance :
balance
-
Edit :
edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]…
e.g.edit 2 n/James Lee e/[email protected]
-
Find :
find KEYWORD [MORE_KEYWORDS]
e.g.find James Jake
-
List :
list
-
Help :
help
-
Select :
select INDEX
e.g.select 2
-
History :
history
-
Map:
map
-
Undo :
undo
-
Redo :
redo
-
RemoveTag :
removetag INDEX [t/TAG]…
-
SearchTag :
searchtag t/TAG
e.g.searchtag t/classmates t/friends
-
Sort :
sort KEYWORD_PREFIX/ORDER
-
Split :
split INDEX1 [INDEX2…] m/MONEY
-
ItemShow :
itemshow INDEX
-
ItemAdd :
itemadd INDEX n/ITEM_NAME m/MONEY
-
ItemDelete :
itemdelete PERSON_INDEX ITEM_INDEX
-
Max :
max
-
Min :
min
-
Currency :
currency c/
e.g.currency c/USD