updated pdf for tenants array

This commit is contained in:
2024-03-28 10:01:20 +00:00
parent 57ba3b8f52
commit 51a09dc546
+44 -36
View File
@@ -464,44 +464,52 @@ export const AppealRow_pdf = (props) => {
marginBottom: 10, marginBottom: 10,
}} }}
> >
{props.props[ {props.props.hasOwnProperty(
datafieldname[0].value datafieldname[0].value
].map((tenant, index) => { ) &&
return ( props.props[
<View datafieldname[0]
key={index} .value
style={{ ].map(
flexDirection: (tenant, index) => {
"row", return (
marginBottom: 10, <View
}} key={
> index
<Text }
style={{ style={{
width: "50%", flexDirection:
paddingRight: "row",
"20", marginBottom: 10,
}} }}
> >
{ <Text
tenant.pinswg_agriculturaltenantname style={{
} width: "50%",
</Text> paddingRight:
"20",
}}
>
{
tenant.pinswg_agriculturaltenantname
}
</Text>
<Text <Text
style={{ style={{
width: "40%", width: "40%",
}} }}
> >
Notice Notice
served:{" "} served:{" "}
{formatDate( {formatDate(
tenant.dateserved tenant.dateserved
)} )}
</Text> </Text>
</View> </View>
); );
})} }
)}
</View> </View>
</View> </View>
</View> </View>