From 4f8a0e23fd83821476daf1d79f6a77cb10444992 Mon Sep 17 00:00:00 2001 From: randallnhr Date: Mon, 10 Apr 2023 19:48:12 +0800 Subject: [PATCH 1/2] Rename category summary command --- data/addressbook.json | 2 +- .../logic/commands/general/CategorySummaryCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/addressbook.json b/data/addressbook.json index 1c7fbc73bb9..b75381ae544 100644 --- a/data/addressbook.json +++ b/data/addressbook.json @@ -76,4 +76,4 @@ "amount" : "0.0" }, "recurringGenerators" : [ ] -} +} \ No newline at end of file diff --git a/src/main/java/fasttrack/logic/commands/general/CategorySummaryCommand.java b/src/main/java/fasttrack/logic/commands/general/CategorySummaryCommand.java index 06af8cf03b3..0b37a27f7e5 100644 --- a/src/main/java/fasttrack/logic/commands/general/CategorySummaryCommand.java +++ b/src/main/java/fasttrack/logic/commands/general/CategorySummaryCommand.java @@ -17,7 +17,7 @@ */ public class CategorySummaryCommand implements GeneralCommand { - public static final String COMMAND_WORD = "scat"; + public static final String COMMAND_WORD = "sumcat"; public static final String MESSAGE_USAGE = COMMAND_WORD + ": Displays summary of category " + "Parameters: INDEX (must be a positive integer)\n" + "Example: " + COMMAND_WORD + " 1"; From d1ddd7c1bce78e7a97079c945ad05d262236f9f6 Mon Sep 17 00:00:00 2001 From: randallnhr Date: Mon, 10 Apr 2023 20:01:37 +0800 Subject: [PATCH 2/2] Remove json --- data/addressbook.json | 79 ------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 data/addressbook.json diff --git a/data/addressbook.json b/data/addressbook.json deleted file mode 100644 index b75381ae544..00000000000 --- a/data/addressbook.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "categories" : [ { - "categoryName" : "Food", - "summary" : "For food" - }, { - "categoryName" : "Entertainment", - "summary" : "For entertainment" - }, { - "categoryName" : "Transportation", - "summary" : "For bus, car, train" - }, { - "categoryName" : "Shopping", - "summary" : "" - }, { - "categoryName" : "Housing", - "summary" : "" - } ], - "expenses" : [ { - "name" : "a", - "amount" : "2.0", - "date" : "2023-12-31", - "category" : { - "categoryName" : "Housing", - "summary" : "" - } - }, { - "name" : "a", - "amount" : "2.0", - "date" : "2023-04-30", - "category" : { - "categoryName" : "Housing", - "summary" : "" - } - }, { - "name" : "Meal at JE", - "amount" : "4.5", - "date" : "2023-04-10", - "category" : { - "categoryName" : "Food", - "summary" : "For food" - } - }, { - "name" : "Groceries", - "amount" : "56.3", - "date" : "2023-03-25", - "category" : { - "categoryName" : "Food", - "summary" : "For food" - } - }, { - "name" : "Shoes", - "amount" : "75.0", - "date" : "2023-03-20", - "category" : { - "categoryName" : "Shopping", - "summary" : "" - } - }, { - "name" : "Movie ticket", - "amount" : "12.99", - "date" : "2023-03-15", - "category" : { - "categoryName" : "Entertainment", - "summary" : "For entertainment" - } - }, { - "name" : "MRT fare", - "amount" : "45.8", - "date" : "2023-03-10", - "category" : { - "categoryName" : "Transportation", - "summary" : "For bus, car, train" - } - } ], - "budget" : { - "amount" : "0.0" - }, - "recurringGenerators" : [ ] -} \ No newline at end of file