rep defect 41

This commit is contained in:
2025-01-16 14:05:31 +00:00
parent cb39990cb1
commit 9980b83d34
+67 -5
View File
@@ -53,6 +53,28 @@ const styles = StyleSheet.create({
paddingLeft: 10, paddingLeft: 10,
backgroundColor: "white", 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: { questionAnswerMid: {
color: "#757575", color: "#757575",
width: "20%", width: "20%",
@@ -239,7 +261,7 @@ export const statement_pdf = ({ docProps }) => {
<Html style={styles.richArea}> <Html style={styles.richArea}>
{CleanHTML( {CleanHTML(
values.conditional_representationCapacity_Comments values.conditional_representationCapacity_Comments
)} ) || "N/A"}
</Html> </Html>
</Text> </Text>
</View> </View>
@@ -440,7 +462,7 @@ export const statement_pdf = ({ docProps }) => {
}} }}
> >
<Text <Text
style={{ width: "40%", fontSize: 12 }} style={{ width: "15%", fontSize: 12 }}
> >
{getTrans( {getTrans(
docProps.locale, docProps.locale,
@@ -448,7 +470,18 @@ export const statement_pdf = ({ docProps }) => {
)} )}
: :
</Text> </Text>
<Text style={styles.questionAnswer}> <Text
style={{
color: "#757575",
width: "310",
fontSize: 12,
padding: 5,
border: 1,
borderColor: "#eee",
backgroundColor: "white",
paddingRight: 10,
}}
>
{values.firstname} {values.lastname} {values.firstname} {values.lastname}
</Text> </Text>
</View> </View>
@@ -459,14 +492,20 @@ export const statement_pdf = ({ docProps }) => {
alignItems: "center", alignItems: "center",
}} }}
> >
<Text style={styles.questionText}> <Text
style={{
width: "40",
fontSize: 12,
marginLeft: 10,
}}
>
{getTrans( {getTrans(
docProps.locale, docProps.locale,
"statement-date-label" "statement-date-label"
)} )}
: :
</Text> </Text>
<Text style={styles.questionAnswer}> <Text style={styles.questionAnswerSmaller}>
{signedDate} {signedDate}
</Text> </Text>
</View> </View>
@@ -479,6 +518,7 @@ export const statement_pdf = ({ docProps }) => {
style={{ style={{
flexDirection: "row", flexDirection: "row",
marginBottom: 10, marginBottom: 10,
alignItems: "center",
}} }}
> >
<Text <Text
@@ -498,6 +538,28 @@ export const statement_pdf = ({ docProps }) => {
: ""} : ""}
</Text> </Text>
</View> </View>
) : values.hasOwnProperty("onBehalfOfLPA") ? (
<View
wrap={false}
style={{
flexDirection: "row",
marginBottom: 10,
alignItems: "center",
}}
>
<Text
style={{ width: "18%", fontSize: 12 }}
>
{getTrans(
docProps.locale,
"statement-onbehalf-label"
)}
:
</Text>
<Text style={styles.questionAnswerWide}>
{values.onBehalfOfLPA}
</Text>
</View>
) : ( ) : (
<View /> <View />
)} )}