added tenant fieldarray and date ranges

This commit is contained in:
2024-03-20 10:56:42 +00:00
parent 7c09367be4
commit dc933087d2
14 changed files with 268 additions and 41 deletions
+90 -1
View File
@@ -93,7 +93,19 @@ export const AppealRow_pdf = (props) => {
backgroundColor: "white",
padding: 5,
},
questionAnswerRow: {
width: "100%",
flex: 1,
flexDirection: "row",
flexGrow: 1,
},
questionAnswerColLeft: {
width: "40%",
},
questionAnswerColRight: {
padding: 5,
width: "40%",
},
sectionContainer: {
backgroundColor: "#F8F8F8",
padding: 10,
@@ -248,6 +260,8 @@ export const AppealRow_pdf = (props) => {
break;
case "{07FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}":
var fieldCopy = datafieldcontent[0].value
.replace("]", "")
.replace("[", "")
.split(",")
.find((a) =>
a.includes(
@@ -416,6 +430,81 @@ export const AppealRow_pdf = (props) => {
</View>
);
break;
case "{0273EDBD-AC1D-40d3-9FB2-095C621B552D}":
return (
<View
style={{
flexDirection: "column",
marginBottom: 10,
}}
>
<View
wrap={false}
style={{
flexDirection: "row",
marginBottom: 10,
}}
>
<Text
style={
styles.questionTextMid
}
>
{rows[0].value}
</Text>
</View>
<View
style={
styles.questionAnswerWide
}
>
<View
style={{
flexDirection: "column",
marginBottom: 10,
}}
>
{props.props[
datafieldname[0].value
].map((tenant) => {
return (
<View
style={{
flexDirection:
"row",
marginBottom: 10,
}}
>
<Text
style={{
width: "50%",
paddingRight:
"20",
}}
>
{
tenant.pinswg_agriculturaltenantname
}
</Text>
<Text
style={{
width: "40%",
}}
>
Notice
served:{" "}
{formatDate(
tenant.dateserved
)}
</Text>
</View>
);
})}
</View>
</View>
</View>
);
default:
return (
<View