Ticket #3109 (new Bugs)

Opened 3 months ago

Last modified 3 months ago

When exporting CDR to PDF, duration is always in seconds despite minutes is selected.

Reported by: mickecarlsson Assigned to:
Priority: minor Milestone: 2.6
Component: Reports Version: 2.5-branch
Keywords: Cc:
Confirmation: Confirmed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

As in title, minor issue. When exporting a report to pdf, the duration is always in seconds. Minutes are selected in the report (default). Same issue in export to csv.

Change History

08/26/08 12:50:15 changed by p_lindheimer

  • confirmation changed from Unreviewed to Confirmed.
  • milestone changed from 2.5 to 3.0.

Well one solution is to change the label to: "Export Raw Data to PDF File" and "Export Raw Data to CSV File"...

If you want to go code it, you will need to pass resulttype to the export_pdf.php and export_csv.php links in call-log.php and then modify those two files to adjust for minutes when it is minutes. The code is completely general purpose based on arbitrary queries being passed to it, so it will be a bit of fun (you will want to consider other fields then duration in the event someone exposes those).

For CSV, I personally think always seconds is better, it can be adjusted easily in a spreadsheet. For PDF, there is an argument to be made for min/sec...

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads