Annual reports #222

Closed
opened 2022-10-12 10:46:50 +02:00 by mpeltriaux · 1 comment
Owner

Status quo

Using the reports menu, an ETS user can easily create reports on created data for certain responsible offices.

The ministry has been delighted by this easy to use feature but asked for the possibility to automatically create said reports for all offices at once.

Solution 1

(Ministry) User oriented --> user needs to do the action

  1. Add an All option at the top of the drop-down office selection
    1. All will only be added to the list if the performing user has all regular needed permissions and has is_staff activated on it's profile
    2. The ministry's users will need to be configured this way to be able to use the extended feature
  2. If All is selected, an extended template should be used for displaying the results:
    1. All offices are collapsible elements (just like the results itself) and can be opened by clicking
    2. Each of these elements contain the regular report, which would have been generated on a single-option-select for the office
    3. Each of these elements contain an own download button, which provides the excel download for this specific office's report
    4. At the top of the whole page, there will be another download button, which provides the download of all these single report at once
      1. It needs to be evaluated whether all excel reports should simply be zipped and provided as download or all reports should be stored into a single excel file using different sheets

Solution 2

KSP-Servicestelle admin oriented --> admin needs to do the action

  1. No fancy frontend works to be done
  2. Add a new command like gen_annual_report with a parameter defining the year, so a call would look like python manage.py gen_annual_report 2022 to generate all reports for the year 2022 (1.1.2022-31.12.2022)
    1. (Year parameter can be extended to a start and end date in ISO format for more flexibility)
    2. The command iterates all offices and generates each report
    3. All reports will be zipped and sent via mail to each address found inside of django_settings.py ADMINS list
  3. KSP-Servicestelle can redirect the zipped file to the responsible contact
# Status quo Using the `reports` menu, an ETS user can easily create reports on created data for certain responsible offices. The ministry has been delighted by this easy to use feature but asked for the possibility to automatically create said reports for all offices at once. # Solution 1 (Ministry) User oriented --> user needs to do the action 1. Add an `All` option at the top of the drop-down office selection 1. `All` will only be added to the list if the performing user has all regular needed permissions **and** has `is_staff` activated on it's profile 1. The ministry's users will need to be configured this way to be able to use the extended feature 1. If `All` is selected, an extended template should be used for displaying the results: 1. All offices are collapsible elements (just like the results itself) and can be opened by clicking 1. Each of these elements contain the regular report, which would have been generated on a single-option-select for the office 1. Each of these elements contain an own download button, which provides the excel download for this specific office's report 1. At the top of the whole page, there will be another download button, which provides the download of all these single report at once 1. It needs to be evaluated whether all excel reports should simply be zipped and provided as download or all reports should be stored into a single excel file using different sheets # Solution 2 KSP-Servicestelle admin oriented --> admin needs to do the action 1. No fancy frontend works to be done 1. Add a new command like `gen_annual_report` with a parameter defining the year, so a call would look like `python manage.py gen_annual_report 2022` to generate all reports for the year 2022 (1.1.2022-31.12.2022) 1. (Year parameter can be extended to a start and end date in ISO format for more flexibility) 1. The command iterates all offices and generates each report 1. All reports will be zipped and sent via mail to each address found inside of django_settings.py `ADMINS` list 1. KSP-Servicestelle can redirect the zipped file to the responsible contact
mpeltriaux added the
feature
label 2022-10-12 10:46:50 +02:00
mpeltriaux self-assigned this 2022-10-12 10:46:50 +02:00
Author
Owner

Merged in #251

# Merged in #251
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IT-Naturschutz/konova#222
No description provided.