The create_report module provides functions for working with reports.
Functions
Function | Parameters | Return Value | Description |
|---|
approve_report(project_id, report_id) | project_id: Projekt-ID report_id: Statusbericht | True or False depending on whether the report could be approved
| Approve a status report |
create_report(pr_id, report_type, date_to=None, tcalc=True) | pr_id: Projekt-ID report_type: ppms.constants.REPORT_CREATION_APPLICATION, ppms.constants.REPORT_CREATION_REPORT, ppms.constants.REPORT_CREATION_FINAL_REPORT or ppms.constants.REPORT_CREATION_BASELINE
date_to: Date in the format dd.mm.YYYY tcalc: True or False | Returns either the Statusbericht or None if no report could be created | Creates a new report.
tcalc controls whether the project should be calculated before report creation If date_to is set, the report is marked as a monthly accounted report. |
revoke_report(project_id, report_id, skip_checks=False) | project_id: Projekt-ID report_id: Statusbericht
skip_checks: Skips the checks for active baseline and active report | True or False
| Revokes an approved report |
set_cost_trend_analysis(project_id, report_id, value) | project_id: Projekt-ID report_id: Statusbericht value: True or False | True or False
| Sets Kostentrendanalyse to the given value |
set_milestone_trend_analysis(project_id, report_id, value) | project_id: Projekt-ID report_id: Statusbericht value: True or False | True or False
| Sets Meilensteintrendanalyse to the given value |