Merged PR 1121: moved personal details to end of pdf document

moved personal details to end of pdf document

Related work items: #10832
This commit is contained in:
Robert Bond
2024-04-10 13:14:56 +00:00
@@ -181,6 +181,71 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
/>
</View>
{Object.keys(titles).map((key) => (
<View key={key}>
<View
style={{
marginTop: 10,
fontFamily: "Helvetica-Bold",
}}
>
<Text style={{ fontSize: 14 }}>
{parseInt(key) + 1} {titles[key].value}
</Text>
<View style={styles.sectionContainer}>
<View
style={{
flexDirection: "row",
marginBottom: 10,
}}
>
<View
style={{
flexDirection: "column",
marginBottom: 10,
}}
>
<AppealRow_pdf
formXML={xmlStr}
whichSection={parseInt(key) + 1}
sectionCount={key}
props={docProps}
key={key}
mandatoryFieldsData={null}
pickListData={pickListData}
filesList={values.filesList}
/>
</View>
</View>
</View>
</View>
</View>
))}
</View>
<Text
style={styles.pageNumber}
render={({ pageNumber, totalPages }) =>
`${pageNumber} / ${totalPages}`
}
fixed
/>
<View
fixed
style={{
position: "absolute",
top: 20,
left: 20,
bottom: 20,
right: 20,
border: 1,
borderColor: "#eee",
padding: 20,
paddingTop: 30,
height: "100%",
}}
></View>
</Page>
<Page size="A4" style={styles.page} wrap>
<View>
<View
style={{
@@ -215,10 +280,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
</Text>
<Text style={styles.questionAnswer}>
{" "}
{
values.caseObj
.pinswg_onbehalfof
}
{values.caseObj.pinswg_onbehalfof}
</Text>
</View>
<View
@@ -321,9 +383,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}}
>
<Text
style={
styles.questionText
}
style={styles.questionText}
>
Company name
</Text>
@@ -346,9 +406,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}}
>
<Text
style={
styles.questionText
}
style={styles.questionText}
>
Agent name
</Text>
@@ -375,9 +433,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}}
>
<Text
style={
styles.questionText
}
style={styles.questionText}
>
Agent email address
</Text>
@@ -400,9 +456,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}}
>
<Text
style={
styles.questionText
}
style={styles.questionText}
>
Agent address
</Text>
@@ -425,9 +479,7 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
}}
>
<Text
style={
styles.questionText
}
style={styles.questionText}
>
Agent phone number
</Text>
@@ -500,70 +552,6 @@ export const planningappeals78_pdf = ({ docProps, pickListData }) => {
</View>
</View>
</View>
{Object.keys(titles).map((key) => (
<View key={key}>
<View
style={{
marginTop: 10,
fontFamily: "Helvetica-Bold",
}}
>
<Text style={{ fontSize: 14 }}>
{parseInt(key) + 1} {titles[key].value}
</Text>
<View style={styles.sectionContainer}>
<View
style={{
flexDirection: "row",
marginBottom: 10,
}}
>
<View
style={{
flexDirection: "column",
marginBottom: 10,
}}
>
<AppealRow_pdf
formXML={xmlStr}
whichSection={parseInt(key) + 1}
sectionCount={key}
props={docProps}
key={key}
mandatoryFieldsData={null}
pickListData={pickListData}
filesList={values.filesList}
/>
</View>
</View>
</View>
</View>
</View>
))}
</View>
<Text
style={styles.pageNumber}
render={({ pageNumber, totalPages }) =>
`${pageNumber} / ${totalPages}`
}
fixed
/>
<View
fixed
style={{
position: "absolute",
top: 20,
left: 20,
bottom: 20,
right: 20,
border: 1,
borderColor: "#eee",
padding: 20,
paddingTop: 30,
height: "100%",
}}
></View>
</Page>
</Document>
);