From b4776e9a66a847f7299fc20f2a3ae66c26d1cc4f Mon Sep 17 00:00:00 2001 From: "Mark Tyers (aa7401)" Date: Tue, 20 Jul 2021 14:09:23 +0100 Subject: [PATCH] Added decline option --- 22 Expenses Tracker.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/22 Expenses Tracker.md b/22 Expenses Tracker.md index e1232f0..2358fe0 100644 --- a/22 Expenses Tracker.md +++ b/22 Expenses Tracker.md @@ -57,11 +57,17 @@ Clicking on an expense label should display the details for that particular expe This feature requires you to add a `manager's` console to the web app. One of the accounts needs to be flagged as the manager's and the following screens must only be accessible to this user: -1. The home screen should contain the total amount paid out in expenses to date plus a summary all the users including: - 1. Their profile picture. - 2. Their name (first and last). - 3. The total unclaimed expenses (see third screen). -2. Clicking on the name or profile picture of a user should display the detailed expenses screen for that user (the same information as the normal user's home screen). It should also allow each expense to be clicked to view the details page (same as the normal user in the sate 1 functionality). -3. The detailed expense screen should include a button/link against each user labelled "Approve expenses". Clicking on this should: - 1. Set the status of all these expense items to `approved`. - 2. Increment the total money paid out by the amount being claimed by the user. This will also reset the amount outstanding to 0. +The manager's home screen should show: + +1. The number of expenses claims that are waiting for approval (this should update as they approve/cancel requests). +2. The total amount of the expenses waiting to be dealt with. + +There should be a summary all the users including: + +1. Their profile picture. +2. Their name (first and last). +3. The total unclaimed expenses (see third screen). + +Clicking on the name or profile picture of a user should display the detailed expenses screen for that user (the same information as the normal user's home screen). It should also allow each expense to be clicked to view the details page (same as the normal user in the feature 3 functionality). + +The detailed expense screen should include a button/link against each user labelled "Approve" and another called "Decline". Clicking on either should Set the status of all these expense items to **approved** or **declined**.