Closed pferrariuy closed 3 months ago
Added new logger for reports:
LoggerSrevice.reportLogger()
email.report.subject
= SolaREC Report - {0}email.report.subject.daily
= SolaREC Daily Report - {0}email.report.subject.weekly
= SolaREC Weekly Report - {0}email.report.subject.montlhy
= SolaREC Monthly Report - {0}email.report.content
= Report for location <strong>{0}</strong> is attached. Please do not replay to the email.email.report.content.daily
= The daily report for location <strong>{0}</strong> is attached. Please do not replay to the email.email.report.content.weekly
= The weekly report for location <strong>{0}</strong> is attached. Please do not replay to the email.email.report.content.montlhy
= The monthly report for location <strong>{0}</strong> is attached. Please do not replay to the email.email.report-error.subject
= Error during email generationemail.report-error.content.html
= Error during email generation: {0}<br>{1}email_report.html
Summary
Will have a services that will be invoked with events, so that reports can be generated in background (due to the possibility of time required). Reports will be generated by location only. Depending on how the report has been configure, it might include information of other locations of the client.
Report PDF
PDF reports will be generated with iText with the use of the HTML to PDF service, therefore, the code will generate HTML to then be converted to PDF and that PDF send by email to the user.
In order to incliude chats in the PDF,
jFreeChart
will be use to generate PNG files that will embeded in the generated PDF file.Other types of reports
In the future, other types of reports might be added, like Excel file.
Types of reports
Code
All the code related to report generation will be in the module
solarec.report
.