From a3ca7f1e6bc24d70fa8dae066851b8378744b128 Mon Sep 17 00:00:00 2001 From: Sriranjan Srivastava Date: Wed, 13 Mar 2024 14:44:43 +0530 Subject: [PATCH] Added BPA malba fix --- .../obps/src/pages/citizen/NewBuildingPermit/CheckPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/NewBuildingPermit/CheckPage.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/NewBuildingPermit/CheckPage.js index 6dea1554548..02cbb01ce26 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/NewBuildingPermit/CheckPage.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/NewBuildingPermit/CheckPage.js @@ -37,7 +37,7 @@ console.log("mdmsData",mdmsData,sessionStorage.getItem("plotArea"),typeof(sessio let plotArea = parseInt(sessionStorage.getItem("plotArea")) const LabourCess = plotArea > 909 ?mdmsData?.BPA?.LabourCess[1].rate * plotArea : 0 const GaushalaFees = mdmsData?.BPA?.GaushalaFees[0].rate - const Malbafees = (plotArea <=500 ?mdmsData?.BPA?.MalbaCharges[0].rate :plotArea >500 && plotArea <=1000 ?mdmsData?.MalbaCharges?.BPA[1].rate :mdmsData?.MalbaCharges?.BPA[2].rate || 500) + const Malbafees = (plotArea <=500 ?mdmsData?.BPA?.MalbaCharges[0].rate :plotArea >500 && plotArea <=1000 ?mdmsData?.BPA?.MalbaCharges?.[1].rate :mdmsData?.BPA?.MalbaCharges[2].rate || 500) sessionStorage.setItem("Malbafees",Malbafees) sessionStorage.setItem("WaterCharges",Malbafees/2) sessionStorage.setItem("GaushalaFees",GaushalaFees) @@ -46,7 +46,7 @@ setGaushalaFees(GaushalaFees) setLabourCess(LabourCess) setMalbafees(Malbafees) setWaterCharges(Malbafees/2) -console.log("mdmsData",mdmsData,Malbafees,plotArea) +console.log("mdmsData",mdmsData,mdmsData?.MalbaCharges?.BPA[1].rate,plotArea) },[mdmsData]) // for application documents let improvedDoc = [];