code4romania / code4romania/alex-api
[Grant] Add New Grant - 03 Bugetul grantului
- Dominant language
- Dockerfile
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
**About budgets**
Each contract has a budget, translating to a specific amount of money granted to the CSO. The budget is always a table consisting of categories and subcategories (budget lines). Depending on the contract type (in full or co-funded) each budget line will require some specific actions. E.g. if a contract is co-funded, then every time a new line of cost is added the CSO will have to check a box stating if that line of cost is co-funded by itself (or by a partner) and in what amount.
**Feature description: A user can add a budget to a Grant**
There are 4 possible cases:
- no budget lines added,
- budget lines added with partners and co-funded values;
- budget lines added with co-funded values;
- budget lines added with partners;
Flow:
1. Go to sidebar menu > click on 'Grants', opens 'Grant lists' page > click on 'Add new grant' button > step 3 'Grant budget'
2. A new form opens: Figma - [Grant budget](https://www.figma.com/file/W7ppl5xGFpB3atVWwYL7qN/Alex-(asistentul-bugetar-al-ONG-urilor)?type=design&node-id=4726-70593&mode=design&t=2Q1mYU2bmG2ccDlA-4)
3. Choose ['Tip finantare'](https://www.figma.com/file/W7ppl5xGFpB3atVWwYL7qN/Alex-(asistentul-bugetar-al-ONG-urilor)?type=design&node-id=4726-71300&mode=design&t=yED3dImNWgfOJNyS-4)
- **Situation 1:** If there is no budget line added the following message will be displayed (**_Figma mockup to be built_**):
* Line 1, grey: „Nu ai adăugat linii de buget.”
* Line 2, green, hyperlink to page '[Adauga linie de buget](https://www.figma.com/file/W7ppl5xGFpB3atVWwYL7qN/Alex-(asistentul-bugetar-al-ONG-urilor)?type=design&node-id=4939-95274&mode=design&t=yED3dImNWgfOJNyS-4)' (detailed in issue https://github.com/code4romania/alex-api/issues/47)
If there is no line added the user cannot go to step [’04 Plăţi şi rapoarte](https://www.figma.com/file/W7ppl5xGFpB3atVWwYL7qN/Alex-(asistentul-bugetar-al-ONG-urilor)?type=design&node-id=3067-41285&mode=design&t=yED3dImNWgfOJNyS-4)’ **_(issue to be added)_**
- **Situation 2**: there are budget lines added, the user can:
* click on a row to see the [details](https://www.figma.com/file/W7ppl5xGFpB3atVWwYL7qN/Alex-(asistentul-bugetar-al-ONG-urilor)?type=design&node-id=4939-67758&mode=design&t=yED3dImNWgfOJNyS-4)
* a dropdown menu is available at the end of each row allowing for the following actions:
'Vizualizeaza detalii' - shows the details of a budget line
'Editeaza' - edits the budget line (issue https://github.com/code4romania/alex-api/issues/48)
'Sterge linie buget' - deletes the budget line (issue https://github.com/code4romania/alex-api/issues/48)
4. User can add a budget line by clicking on 'Adauga linie de buget' button > the ['Adaugare linie de buget' ](https://www.figma.com/file/W7ppl5xGFpB3atVWwYL7qN/Alex-(asistentul-bugetar-al-ONG-urilor)?type=design&node-id=4939-95274&mode=design&t=yED3dImNWgfOJNyS-4)form is opened
5. User can save a budget - saves the details added on the page so far and return to [‘Granturi incomplete’ ](https://www.figma.com/file/W7ppl5xGFpB3atVWwYL7qN/Alex-(asistentul-bugetar-al-ONG-urilor)?type=design&node-id=5123-66023&mode=design&t=yED3dImNWgfOJNyS-4)
**Actions on grant budget:**
1. ‘Anulează’ return to [‘Listă granturi’ form ](https://www.figma.com/file/W7ppl5xGFpB3atVWwYL7qN/Alex-(asistentul-bugetar-al-ONG-urilor)?type=design&node-id=3048-49708&mode=design&t=yED3dImNWgfOJNyS-4)+ behavior described for Pop-up with message ‘Salvezi modificările?’
2. ‘Salvează draft’ saves the details added on the page so far and return to [‘Granturi incomplete’ ](https://www.figma.com/file/W7ppl5xGFpB3atVWwYL7qN/Alex-(asistentul-bugetar-al-ONG-urilor)?type=design&node-id=5123-66023&mode=design&t=yED3dImNWgfOJNyS-4)
3. ‘Pasul anterior’ leads to second step of the setup > ‘02 Detaliile grantului‘ (issue https://github.com/code4romania/alex-api/issues/44)
7. ‘Pasul următor’ leads to next step of the setup > ’04 Plăţi şi rapoarte” **_(issue to be added)_**
Contributor guide
Assessment
This issue has not been assessed yet.