PT reassessment
Objective:- To provide employees(Admin) with the functionality to change the property details or to change the demand.
only user with the PTADMIN role has the right to change the property
the Property should be in active state
Change the property details
login with Admin employee
goto property details page if role is “PTADMIN“ and property is active you will get two action button “EDIT PROPERTY” and “EDIT DEMAND”
click on the “EDIT PROPERTY” and update the property details.
Change the demand
login with Admin employee
goto property details page if role is “PTADMIN“ and property is active you will get two action button “EDIT PROPERTY” and “EDIT DEMAND”
click on the “EDIT DEMAND” and update the property demand.
Technical Implementation Details:
Update property and edit demand button can be found in the link given below:
here the main changes are ifUserRoleExists("PTADMIN")
then show the button visibility and on click redirect to specific page and add the assessment as true as shown below.
if (ifUserRoleExists("PTCEMP")) {
redirectTo = redirectTo + "&assessment=true";
}
if click on the “EDIT PROPERTY“ will redirect to
https://github.com/eNagarsewaU/DIGIT-UKD/blob/bdd6617e235013725189c0565e358870cdbbfd2e/frontend/mono-ui/web/rainmaker/dev-packages/pt-employee-dev/src/Screens/FormWizard/index.js
It works same as update property
if click on the “EDIT DEMAND“ will redirect to
here if the assessment is true then we can only change the property tax, swachata tax and interest only
we cannot decrease the all three fields on decreasing it will pop the alert. and validation are added when we click on update for same
dev-packages/egov-ui-kit-dev/src/common/propertyTax/DemandCollection/index.js
if(isAssesment){
if (
(taxData.code === "PT_TAX") &&
get(preparedFinalObject, `DemandPropertiesResponse.Demands[${index}].demandDetails[0].taxAmount`) >
e.target.value
) {
alert("Tax value cannot be decrease");
}
}
dev-packages/pt-employee-dev/src/Screens/DCB/index.js
if (isAssesment) {
errorCode = "FINE";
let demandResponse = DemandPropertiesResponse.Demands
demand.map((item,index)=>{
let data = item.demand[Object.keys(item.demand)]
data.map((ele,i)=>{
if(ele.PT_TAXHEAD === "PT_TAX" || ele.PT_TAXHEAD ==="SWATCHATHA_TAX" || ele.PT_TAXHEAD === "PT_TIME_INTEREST"){
try{
if(i < demandResponse[index].demandDetails.length && ele.PT_DEMAND < demandResponse[index].demandDetails[i].taxAmount){
errorCode = "ERR09_DEMAND_ENTER_THE_DATA";
}
}catch(e){
errorCode = "ERR09_DEMAND_ENTER_THE_DATA";
}
}
})
})
}