From 81c074245fba0b7898dbb17900d550f9db36f71c Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Fri, 3 Jan 2025 10:26:00 +0000 Subject: [PATCH] re defect 31 --- components/pdftemplates/finalComments_pdf.js | 51 ++++++++++++-------- components/pdftemplates/statement_pdf.js | 48 +++++++++++------- 2 files changed, 62 insertions(+), 37 deletions(-) diff --git a/components/pdftemplates/finalComments_pdf.js b/components/pdftemplates/finalComments_pdf.js index 1f4cce17..d90c04db 100644 --- a/components/pdftemplates/finalComments_pdf.js +++ b/components/pdftemplates/finalComments_pdf.js @@ -257,7 +257,7 @@ export const finalComments_pdf = ({ docProps }) => { : - {values.siteAddress} + {values.siteAddress.replace(/false/gm, " ")} { - - - {getTrans( - docProps.locale, - "statement-onbehalf-label" - )} - : - - - {values.representationCapacity} - - + + {values.hasOwnProperty( + "representationOnBehalfOf_details" + ) ? ( + + + {getTrans( + docProps.locale, + "statement-onbehalf-label" + )} + : + + + {values.hasOwnProperty( + "representationOnBehalfOf_details" + ) + ? values.representationOnBehalfOf_details + : ""} + + + ) : ( + "" + )} diff --git a/components/pdftemplates/statement_pdf.js b/components/pdftemplates/statement_pdf.js index 1a800791..921c340c 100644 --- a/components/pdftemplates/statement_pdf.js +++ b/components/pdftemplates/statement_pdf.js @@ -441,24 +441,36 @@ export const statement_pdf = ({ docProps }) => { - - - {getTrans( - docProps.locale, - "statement-onbehalf-label" - )} - : - - - {values.representationCapacity} - - + {values.hasOwnProperty( + "representationOnBehalfOf_details" + ) ? ( + + + {getTrans( + docProps.locale, + "statement-onbehalf-label" + )} + : + + + {values.hasOwnProperty( + "representationOnBehalfOf_details" + ) + ? values.representationOnBehalfOf_details + : ""} + + + ) : ( + "" + )}