The create_report module provides functions for working with reports.

Functions

FunctionParametersReturn ValueDescription
approve_report(project_id, report_id)project_id: Project ID
report_id: Status report
True or False depending on whether the report could be approvedApprove a status report
create_report(pr_id, report_type, date_to=None, tcalc=True)pr_id: Project 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 createdCreates 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: Project ID
report_id: Status report

skip_checks: Skips the checks for active baseline and active report
True or FalseRevokes an approved report
set_cost_trend_analysis(project_id, report_id, value)project_id: Project ID
report_id: Status report
value: True or False
True or FalseSets Cost trend analysis to the given value
set_milestone_trend_analysis(project_id, report_id, value)project_id: Project ID
report_id: Status report
value: True or False
True or FalseSets Milestone trend analysis to the given value