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 + : ""} + + + ) : ( + "" + )}