From c568554c45b1f62d8d981aa5808f0825cdcc6963 Mon Sep 17 00:00:00 2001 From: whikernel Date: Wed, 29 Nov 2023 14:23:19 +0100 Subject: [PATCH] [FIX] Fixed reporting with new export layout --- source/app/iris_engine/reporter/reporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/iris_engine/reporter/reporter.py b/source/app/iris_engine/reporter/reporter.py index 04ff71ebb..092549965 100644 --- a/source/app/iris_engine/reporter/reporter.py +++ b/source/app/iris_engine/reporter/reporter.py @@ -307,7 +307,7 @@ def generate_doc_report(self, doc_type): name = "{}".format("{}.docx".format(report.naming_format)) name = name.replace("%code_name%", case_info['doc_id']) - name = name.replace('%customer%', case_info['case'].get('for_customer')) + name = name.replace('%customer%', case_info['case']['client']['customer_name']) name = name.replace('%case_name%', case_info['case'].get('name')) name = name.replace('%date%', datetime.utcnow().strftime("%Y-%m-%d")) output_file_path = os.path.join(self._tmp, name)