Skip to content

Commit

Permalink
ISTE-144: Added benchmark result (#574)
Browse files Browse the repository at this point in the history
ISTE-144: Added benchmark result
  • Loading branch information
anilsingha-eGov authored May 28, 2024
2 parents 1f5a7a4 + eb30e37 commit 1820eba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ export const searchTestResultData = async ({ t, id, type, tenantId }) => {

testcriteraData?.forEach((testItem) => {
const matchingMdmsItem = mdmsCriteriaData?.mdms?.find((mdmsItem) => mdmsItem.uniqueIdentifier === testItem.criteriaCode);

if (matchingMdmsItem) {
const combineResults = `${t(Digit.Utils.locale.getTransformedLocale(`ES_TQM_${matchingMdmsItem.data.benchmarkRule}`))} ${matchingMdmsItem.data.benchmarkValues.join(' - ')}`;
const mergedData = {
criteriaCode: testItem.criteriaCode,
qparameter: matchingMdmsItem.data.parameter,
uom: matchingMdmsItem.data.unit,
benchmarkValues: matchingMdmsItem.data.benchmarkValues?.[0],
benchmarkValues: combineResults,
results: testItem.resultValue,
status: testItem.resultStatus,
};
Expand Down Expand Up @@ -241,6 +243,7 @@ export const searchTestResultData = async ({ t, id, type, tenantId }) => {
"",
"",
"",
// "",
t("ES_TQM_LABEL_RESULT_SUMMARY"),
testResponse.status === "PASS" ? t("ES_TQM_LABEL_RESULT_PASS") : testResponse.status === "FAIL" ? t("ES_TQM_LABEL_RESULT_FAIL") : t("TQM_TEST_STATUS_PENDING"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ function ViewTestResults() {
},
});


const handleDownloadPdf = async () => {
try {
const respo = await Digit.CustomService.getResponse({
Expand Down

0 comments on commit 1820eba

Please sign in to comment.