Skip to content

Commit

Permalink
Merge pull request #272 from ChrisLangton/master
Browse files Browse the repository at this point in the history
finish PPP
  • Loading branch information
ChrisLangton authored Nov 8, 2021
2 parents 7015f6d + 29ea02e commit fdbdef3
Showing 1 changed file with 95 additions and 1 deletion.
96 changes: 95 additions & 1 deletion docs/team/chrislangton.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ All the code I contributed for this project can be found at this [RepoSense link
### Contributions to the User Guide
- Created our cOOPer logo, that is used at the very top of the guide.
- Documented the creating of the balance sheet: `bs``add` section of the guide - As I implemented both of these functions, I documented their usage in the guide. After seeking feedback from my teammates, I decided that combining the two commands in the guide would make for a much more intuitive read (and subsequently experience) for the user.
- Documented the creating of the cash flow statemenet: `cf``add` section of the guide - Similar to the balance sheet, these two commands were explained in a pair for better understandability.
- Documented the creating of the cash flow statement: `cf``add` section of the guide - Similar to the balance sheet, these two commands were explained in a pair for better understandability.
- Documented the accessing of the balance sheet `bs``list` section of the guide - as I implemented both of these functions, I documented their usage in the guide, explained in a pair for the same reasons.
- Documented the accessing of the cash flow statement `cf``list` section of the guide - as I implemented both of these functions, I documented their usage in the guide, explained in a pair for the same reasons.
- Documented the projecting of free cash flow `proj` section in the guide. I implemented this functionality, and hence provided the relevant insights and examples in the guide, to assist the user in using the function effectively.

<div style="page-break-after: always;"></div>

### Contributions to the Developer Guide
- Documented the `Finance` component - created the class diagram and explanations of the design of the finance component.
- Documented the "Interacting wih finance functions" section - Created the class diagram and explanations for the implementation of these features.
Expand All @@ -35,3 +37,95 @@ All the code I contributed for this project can be found at this [RepoSense link
### Contribution to Team-based Tasks
- Created the cOOPer logo used in all the team's documents.
- Maintained the issue tracker. (added issues, labels, milestones, proper descriptions etc.)
- Resolved merge conflicts when merging multiple pull requests.


### Contributions beyond the project team
- [Reported bugs for the Practical Exam Dry Run](https://github.com/ChrisLangton/ped/issues).

### Review/mentoring contributions
- Pull requests I reviewed:
- Pull Request [109](#https://github.com/AY2122S1-CS2113T-W13-4/tp/pull/109)
- Pull Request [267](#https://github.com/AY2122S1-CS2113T-W13-4/tp/pull/267)
- Reviewed the content and formatting of both the User Guide and Developer Guide.
- Conducted a detailed grammar and English [review](#https://github.com/AY2122S1-CS2113T-W13-4/tp/pull/258) of the User guide

<div style="page-break-after: always;"></div>

## [Optional] Contribution to the User Guide

Here is an extract of one of my contributions to the User Guide:

> ### Creating the balance sheet: `bs``add`
>- Fills up the different fields of cOOPer's balance sheet such as 'Cash and Cash Equivalents', 'Inventory', 'Accounts Payable', 'Equity Capital', etc.
>- How to create the balance sheet:
>1. Enter `bs`.
>2. cOOPer initiates the balance sheet function and a `[Balance Sheet]` label will appear beside cOOPer's prompt.
>3. cOOPer will prompt you to enter the first entry, 'Cash and Cash Equivalents'.
>4. Enter `add [amount]`.
>5. `[amount]` will be added as 'Cash and Cash Equivalents' as an **asset**.
>6. cOOPer will continue prompting you for the rest of the balance sheet fields.
>7. When the balance sheet is complete, cOOPer will prompt you to enter [`list`](#viewing-the-balance-sheet-bs--list) to view the complete balance sheet.
>> ℹ️`[amount]` must be an **unsigned integer**.<br>
>> ℹ️cOOPer treats `[amount]` as positive and `[amount]` enclosed in parentheses as negative.<br>
>> ℹ️All **assets** are positive, hence no parentheses are needed, while all **liabilities** are negative, hence parentheses are needed. **Shareholder's equity** can be either positive or negative, hence parentheses are optional. To see which fields belong where, see the example output of the[`list`](#viewing-the-balance-sheet-bs--list) feature.<br>
>> ⚠️Any entries **more than** 300 Million SGD (positive or negative) will **not** be added.<br>
>> 💡 Remember to enter `bs` before entering `add` or cOOPer will not know which financial statement to add to.<br>
>> ⚠️Entering `bs` and `add` after the balance sheet is complete will **overwrite** the current fields of the balance sheet one by one, updating the current draft of the balance sheet. Hence, it is important to add the balance sheet fields to **completion**. <br>
>
>
>- Example input for initiating the balance sheet function:
>
>```
> bs
>```
>
>- Expected output:
>
>```
>=========================================================================
>You are now using the Balance Sheet function.
>You can enter 'list' to view the current Balance Sheet or
>start off by entering Cash & Cash Equivalents:
>=========================================================================
>```
>
>- Example input for adding to 'Cash and Cash Equivalents':
>
>```
> [Balance Sheet] add 1500
>```
>
>- Expected output:
>
>```
>=========================================================================
>Success!
>+1500 has been added as Cash and Cash Equivalents
>
>Next, please enter Accounts Receivable
>=========================================================================
>```
>
>[⬆️ Back to top](#whats-in-this-user-guide)
<div style="page-break-after: always;"></div>
## [Optional] Contribution to the Developer Guide
>#### Finance
>
>**API**: [`cooper.finance`](https://github.com/AY2122S1-CS2113T-W13-4/tp/tree/master/src/main/java/cooper/finance)
>
><p align="center">
> <img src="developerGuideDiagrams/financeComponent.png" alt="financeComponent"><br>
></p>
>
>+ The `Finance` component contains the `FinanceManager`, `BalanceSheet`, `CashFlow`, and `Projection` classes, as well as the `FinanceCommand` enumeration.
>+ The `FinanceManager` constructs the instances of the `BalanceSheet`, `CashFlow` and `Projection` for use, and contains attributes and methods that aid the related functions.
>+ The `FinanceCommamnd` enum helps the `Parser` to understand what `Finance` function is being used, with three states: `CF`, `BS`, and `IDLE`.
>+ The `Finance` component also contains the `PdfGenerator` class (not shown in the diagram above) for the `generate` feature. More info on this feature can be found [here](#generating-a-pdf-from-the-financial-statement).
>
>The `Finance` component:
>+ Handles adding / listing / generating of balance sheets, cash flow statements, and free cash flow projections.
>+ Assists the parser in identifying which function is being used at any given time.

0 comments on commit fdbdef3

Please sign in to comment.