code4romania / code4romania/onghub
[NGO Profile][Financial info] Financial data forms for 2023 doesn't appear for NGOs registered in 2023
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
The `/organizations//financial` page should show the financial information of the NGO for the previous year.
When the NGO registers, a set of forms appears for the previous year. Unfortunately, the NGOs registered in 2023 don't have the new set of forms generated. So, they are only left with the 2022 data.
**Steps to reproduce the behavior**
1. Log in to the admin interface
2. Go to `/organizations//financial` for an NGO registered in 2023
3. Look at the `Financial data` forms
4. Only the 2022 forms appear
**Expected behavior**
The 2023 forms should also appear so the NGO can fill them out.
**Screenshots**

Sub-tasks:
- [x] CRON Job - Add Financial Data Reports and "ONG in Numere" reports on 1st of January for the previous year
- [x] CRON Job - Query ANAF services weekly starting 1st of June to 31st of December to fetch financial data for NGOs with the ANAF data not available in our DBs.
- [x] CRON Job - Send email on 1st of June to all NGOs with Financial Data available (it was generated, and the NGO is not created in the current year) for the current year to complete the information until 30th of June. @mirunaioana-msc pending template/text
- [x] Update Email notification text send on 1st of June
- [x] CRON Job - Send emails to NGOs who didn't complete the financial data until 30th of June to inform them to do it asap or will lose access to the account. (@mirunaioana-msc please decide how often, once a week, once a month, etc.)
- [x] CRON Job - Send emails to NGOs who completed the financial data partially or in full, but the data is invalid. (is in status 'invalid', the sums are not matching ANAF data). (@mirunaioana-msc probably with the same message "You may lose access to the account")
- [x] Add new statuses for the Financial Information Reports (as described [here](https://github.com/code4romania/onghub/issues/438#issuecomment-2273165453)).
- [x] Decouple "ONG in numere" from the global status "Datele organizației nu sunt actualizate". Only "Date Financiare" will matter for this message. This will be part of #478
- [x] Add tooltips in the table for the new statuses to make it more user friendly for the NGO Admins.
- [x] #609
- [x] When a new organization is created Financial/Reports/Investors/Partners will be generated only if the organization existed last year.
- [x] Update Reports Status banners when a new one of the Financial/Reports/Investors/Partners is updated/added/removed/edited.
- [ ] Update Financial Reports in production with the new status for the ones already 'Completed'
Contributor guide
Assessment
This issue has not been assessed yet.