-Copy Callers to ReportCallers
-Copy OrganisationUnits to ReportOrganisationUnits
-Copy NumberFilterSettings to ReportNumberFilterSettings
-Generate Start and enddate for the report based on current date and the templates timespan setting
-iterate ReportCallers for current report and get all corresponding PhoneCalls that match from direction and the start / enddate of the report
-iterate over that Phonecalls, calculate the call time
iterate over that Phonecalls, iterate over the ReportNumberFilterSettings of the current report and check if a filter applies
-create ReportPhoneCalls after filtering the numberfiltered excludes
-get ReportOrganisationUnit->reportCallers (not implemented yet) ->ReportPhonecalls for current report for every OrganisationUnit
-if cost report check the applied filter for each call and calculate the price for every call depending on the filters multiplier. if no filter applies for more than one entry the report stops to error.
-generate pdf with all Organisation units and corresponding the time / cost
-Copy Callers to ReportCallers -Copy OrganisationUnits to ReportOrganisationUnits -Copy NumberFilterSettings to ReportNumberFilterSettings -Generate Start and enddate for the report based on current date and the templates timespan setting -iterate ReportCallers for current report and get all corresponding PhoneCalls that match from direction and the start / enddate of the report -iterate over that Phonecalls, calculate the call time
-get ReportOrganisationUnit->reportCallers (not implemented yet) ->ReportPhonecalls for current report for every OrganisationUnit
-if cost report check the applied filter for each call and calculate the price for every call depending on the filters multiplier. if no filter applies for more than one entry the report stops to error.
-generate pdf with all Organisation units and corresponding the time / cost