Property Tax - Edit/Update Property

Edit/Update Property

This feature allows the user to edit the application already created or update the property already registered under their mobile number. After verifying employee can send the application back to citizen with remarks of any changes that's need to be done, which can be edited by the user using this flow. It also allows the user to update the details of the property online, if there are any up-gradation or changes on the property.

edit application:

In the Application details page, on the employee side, if the property is marked with “Send Back to Citizen”, the edit option will appear dynamically at the end of the page and will be static in nature.

Update Property:

In the Property details page, on the employee side, if the property is marked with Verify → forward → approved , the Update option will appear dynamically at the end of the page and will be static in nature.

After this, On clicking the button, user can edit/update the property details by going though the create flow again, the only exception here will be the values will be pre-populated from the Property object received from Property Search API, on completing the flow, Update API will be called and property will get successfully updated.

Acknowledgement screen:

 

Technical Implementation Details:

Edit/Update property main index can be found in the link given below:

/DIGIT-Dev/frontend/micro-ui/web/micro-ui-internals/packages/modules/pt/src/pages/citizen/EditProperty/index.js

here the main code consist of the function which results in transforming the property object received in Search API to the object mainly Assessment flow units that is suitable for the create flow, as the user need to go through create flow again with pre-populated details and update the value of any accordingly. it also consist of the routing for the pages in the create flow.

Update Util function: this function did the exact opposite of create util function (refer https://digit-discuss.atlassian.net/wiki/spaces/DD/pages/1568899109 ), the property object which is received from the Property Search API, is converted to the create flow relevant structure so that the values can be pre-populated for the user convenience, on completing the flow, application is updated. Link for the same can be found below:

/DIGIT-Dev/frontend/micro-ui/web/micro-ui-internals/modules/pt/src/utils

 

MDMS:

MDMS data which is being used here is same as the create flow only, as the flow structure used for edit/update property is same as the create property. Please refer the link for detailed MDMS information.

https://digit-discuss.atlassian.net/wiki/spaces/DD/pages/1569259539

 

Localization :

For Edit/Update Property also, the Localization keys are being added in the ‘rainmaker-pt’ locale module. To change, update or adding of any new localization key will be done in the same locale module only

 

Role Actions:

API

Roles

Action Id

API

Roles

Action Id

1

/access/v1/actions/mdms/_get

CITIZEN

870

2

/egov-mdms-service/v1/_search

CITIZEN

954

3

/localization/messages/v1/_search

CITIZEN

1531

4

/property-services/property/_create

CITIZEN

1895

5

/property-services/property/_search

CITIZEN

1897

6

/property-services/property/_update

CITIZEN

1896

7

/property-services/assessment/_search

CITIZEN

 

8

/billing-service/bill/v2/_fetchbill

CITIZEN