From ed01984987866b81093d4ad07d3fdfe1aa9d85a1 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Thu, 21 Oct 2021 14:58:54 +0200 Subject: [PATCH] #26 Annual conservation report * Adds download as excel sheet * improves db access performance --- .../templates/analysis/reports/detail.html | 4 +- .../reports/includes/compensation/amount.html | 24 ++-- .../reports/includes/eco_account/amount.html | 8 +- .../includes/eco_account/deductions.html | 4 +- .../reports/includes/intervention/amount.html | 6 +- .../includes/old_intervention/amount.html | 6 +- analysis/utils/excel/excel.py | 112 ++++++++++++++++++ analysis/utils/excel/excel_report.xlsx | Bin 0 -> 5958 bytes analysis/utils/report.py | 105 ++++++++++++++-- analysis/views.py | 12 +- 10 files changed, 238 insertions(+), 43 deletions(-) create mode 100644 analysis/utils/excel/excel.py create mode 100644 analysis/utils/excel/excel_report.xlsx diff --git a/analysis/templates/analysis/reports/detail.html b/analysis/templates/analysis/reports/detail.html index 7a5aee0a..9cdae7d2 100644 --- a/analysis/templates/analysis/reports/detail.html +++ b/analysis/templates/analysis/reports/detail.html @@ -9,13 +9,13 @@
-