From 9980b83d34ee6b347ddbec0e89bb2926740eb5b7 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 14:05:31 +0000 Subject: [PATCH] rep defect 41 --- components/pdftemplates/statement_pdf.js | 72 ++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 5 deletions(-) diff --git a/components/pdftemplates/statement_pdf.js b/components/pdftemplates/statement_pdf.js index 14ab7249..3c004a62 100644 --- a/components/pdftemplates/statement_pdf.js +++ b/components/pdftemplates/statement_pdf.js @@ -53,6 +53,28 @@ const styles = StyleSheet.create({ paddingLeft: 10, backgroundColor: "white", }, + questionAnswerSmall: { + color: "#757575", + width: "300", + fontSize: 12, + padding: 5, + border: 1, + borderColor: "#eee", + paddingLeft: 10, + paddingRight: 10, + backgroundColor: "white", + marginRight: 10, + }, + questionAnswerSmaller: { + color: "#757575", + width: "90", + fontSize: 12, + padding: 5, + border: 1, + borderColor: "#eee", + paddingLeft: 10, + backgroundColor: "white", + }, questionAnswerMid: { color: "#757575", width: "20%", @@ -239,7 +261,7 @@ export const statement_pdf = ({ docProps }) => { {CleanHTML( values.conditional_representationCapacity_Comments - )} + ) || "N/A"} @@ -440,7 +462,7 @@ export const statement_pdf = ({ docProps }) => { }} > {getTrans( docProps.locale, @@ -448,7 +470,18 @@ export const statement_pdf = ({ docProps }) => { )} : - + {values.firstname} {values.lastname} @@ -459,14 +492,20 @@ export const statement_pdf = ({ docProps }) => { alignItems: "center", }} > - + {getTrans( docProps.locale, "statement-date-label" )} : - + {signedDate} @@ -479,6 +518,7 @@ export const statement_pdf = ({ docProps }) => { style={{ flexDirection: "row", marginBottom: 10, + alignItems: "center", }} > { : ""} + ) : values.hasOwnProperty("onBehalfOfLPA") ? ( + + + {getTrans( + docProps.locale, + "statement-onbehalf-label" + )} + : + + + {values.onBehalfOfLPA} + + ) : ( )}