added in capacity details to pdf

This commit is contained in:
2023-11-29 10:21:29 +00:00
parent b0e740ba8c
commit 33df7e25d7
8 changed files with 1065 additions and 883 deletions
+18 -5
View File
@@ -20,6 +20,8 @@ import {
setWatchedCasesDetails,
} from "../../store/watchedCases/action";
import { getFormCollectionByID } from "../utils";
import jsonpath from "jsonpath";
import transLookup from "../../data/lookuptranslations.json";
const TopThree = (props) => {
let { t } = useTranslation();
@@ -177,10 +179,9 @@ const TopThree = (props) => {
showTopThreeArr[key].appealType,
"repDetails": showTopThreeArr[key],
});
}}>
}}
>
{showTopThreeArr[key].pinswg_name}
</Link>
</div>
<div className="cardModuleReference">
@@ -199,9 +200,21 @@ const TopThree = (props) => {
{repRaisedDate(showTopThreeArr[key].repfile_name)}
</div>{" "}
<div className="cardModuleReference">
<b>lpa:</b>
<b>LPA:</b>
{" "}
{repRaisedDate(showTopThreeArr[key].repfile_name)}
{router.locale == "cy"
? jsonpath.query(
transLookup,
'$..[?(@.value=="' +
showTopThreeArr[key][
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
] +
'")].value_cy'
)
: showTopThreeArr[key][
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
] || ""}
</div>
</div>
</div>