Generating a sales report
In this chapter, we are presenting a marketing campaign divided into several tasks:
- Detect the best moment to launch the campaign
- Generate individual codes to be sent to potential customers
- Send the codes directly to users over their preferred channel, text message or email
- Collect the results of the campaign
- Generate a sales report with an analysis of the results
This recipe shows task 5 of the campaign.
As the final step, all the information about each of the sales is aggregated and displayed in a sales report.
In this recipe, we'll see how to read from spreadsheets, create PDFs, and produce graphs to generate a comprehensive report automatically in order to analyze the performance of our campaign.
Getting ready
In this recipe, we'll require the following modules in our virtual environment:
$ echo "openpyxl==3.0.3" >> requirements.txt
$ echo "fpdf==1.7.2"...