Skip to content

Commit

Permalink
Merge pull request #241 from donljh/fix-dg-bugs
Browse files Browse the repository at this point in the history
Fix DG diagrams
  • Loading branch information
donljh authored Nov 7, 2022
2 parents 5f58429 + d7ab1ee commit 1fc0c6e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/diagrams/developer-guide/AddItemActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ skinparam conditionStyle diamond

start
:User initiates an add item command with item data;
note :Valid Input Format: \n"addo i/<ITEM_NAME> q/<QUANTITY>\nd/<DESCRIPTION>\nsp/<SELL_PRICE> cp/<COST_PRICE>"
note :Valid Input Format: \n"addi i/ITEM_NAME q/QUANTITY\nd/DESCRIPTION\nsp/SELL_PRICE cp/COST_PRICE"
:System checks whether an item with the same item name already exists in the inventory;
if () then ([Item name does\nnot exist in\ninventory])
:Add item to inventory list;
Expand Down
4 changes: 2 additions & 2 deletions docs/diagrams/developer-guide/AddOrderActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ skinparam conditionStyle diamond

start
:User initiates an add order command with customer data;
note :Valid Input Format: \n"addo n/<NAME> p/<PHONE>\ne/<EMAIL> a/<ADDRESS>"
note :Valid Input Format: \n"addo n/NAME p/PHONE\ne/EMAIL a/ADDRESS"
:UI prompts user for item name and quantity input;
repeat
:User inputs item name and quantity data;
note right: Valid Input Format:\n"i/<ITEM_NAME> q/<QUANTITY>"
note right: Valid Input Format:\n"i/ITEM_NAME q/QUANTITY"
:System checks for existence of item in inventory;
if () then ([item with name exists in inventory])
:Add item and quantity pair \nto current order's item list;
Expand Down
Binary file modified docs/images/developer-guide/AddItemActivityDiagram.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 modified docs/images/developer-guide/AddOrderActivityDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1fc0c6e

Please sign in to comment.