Apfelwurm / OpenInnovaCDR

Simple Open Source CDR for Innovaphone PBX
GNU General Public License v3.0
2 stars 0 forks source link

implement report queue and report generation #4

Open Apfelwurm opened 3 years ago

Apfelwurm commented 3 years ago

-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

Apfelwurm commented 3 years ago

need more data to test this