Skip to content

Commit

Permalink
Added BPA malba fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sriranjan Srivastava authored and Sriranjan Srivastava committed Mar 13, 2024
1 parent 2e8b200 commit a3ca7f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 = [];
Expand Down

0 comments on commit a3ca7f1

Please sign in to comment.