Skip to content

Commit

Permalink
Fix addorder id change bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lwlshawn committed Nov 7, 2021
1 parent 888dbea commit 9370da1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Allows you to delete a client from SalesNote.
Examples:
* Using `listclients` first, to display all clients in SalesNote followed by `deleteclient 2` will
delete the 2nd client in the displayed list.
* Using `find Alice` first, followed by `deleteclient 1` will delete the 1st client in the results of the `find` command.
* Using `findclient Alice` first, followed by `deleteclient 1` will delete the 1st client in the results of the `findclient` command.
</br> This is a quick and convenient way to remove a specific client that you know is in SalesNote, without
having to scroll to find them.

Expand Down Expand Up @@ -637,10 +637,10 @@ If your changes to the data file make its format invalid, SalesNote will discard
Action | Format, Examples
--------|------------------
**ListClients** | `listclients`
**AddClient** | `addclient n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS m/MEASUREMENT g/GENDER [r/REMARK] [t/TAG]…​` <br> e.g., `add n/John Doe p/98765432 e/[email protected] a/John street Blk 92 g/M m/170_100_40 t/friend`
**DeleteClient** | `deleteclient INDEX`<br> e.g., `delete 3`
**EditClient** | `editclient INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [m/MEASUREMENT] [g/GENDER] [r/REMARK] [t/TAG]…​`<br> e.g.,`edit 2 n/James Lee e/[email protected]`
**FindClients** | `findclient KEYWORD [MORE_KEYWORDS]`<br> e.g., `find James Jake`
**AddClient** | `addclient n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS m/MEASUREMENT g/GENDER [r/REMARK] [t/TAG]…​` <br> e.g., `addclient n/John Doe p/98765432 e/[email protected] a/John street Blk 92 g/M m/170_100_40 t/friend`
**DeleteClient** | `deleteclient INDEX`<br> e.g., `deleteclient 3`
**EditClient** | `editclient INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [m/MEASUREMENT] [g/GENDER] [r/REMARK] [t/TAG]…​`<br> e.g.,`editclient 2 n/James Lee e/[email protected]`
**FindClients** | `findclient KEYWORD [MORE_KEYWORDS]`<br> e.g., `findclient James Jake`

### Task Commands

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/model/order/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public Order(Label label, Customer customer, Date date, Amount amount) {
* Confirms the id when the application is sure the order is valid.
*/
public void confirmId() {
this.id = id;
id++;
this.id = count;
count++;
}

public boolean getIsComplete() {
Expand Down

0 comments on commit 9370da1

Please sign in to comment.