Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Edit Trade License

This feature allows the user to edit the application already created 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.

edit application:

In the Application details page, on the employee side, if the application is marked with “Send Back to Citizen”, the edit option will appear dynamically at the end of the application details page, which user can navigate through my applications.

After this, On clicking the button, user can edit the trade license details by going though the create flow again, first it will land on the Summary page, where for each section “change” button is there, on clicking on it, user will be redirected to the particular content, the only exception here will be the values will be pre-populated from the License object received from Trade License Search API, on completing the flow, Update API will be called and License application will get successfully updated.

Acknowledgement Screen:

Technical Implementation Details:

Edit Trade License main index can be found in the link given below:

https://github.com/egovernments/digit-ui-internals/blob/main/packages/modules/tl/src/pages/citizen/EditTrade/index.js

here the main code consist of the function which results in transforming the License object received in Search API to the object structure which is suitable for citizen Apply flow (owner details, units, accessories etc), as the user need to go through Apply flow again with pre-populated details and update the value of any accordingly. it also consist of the routing for the pages in the Apply flow.

getTradeEditDetails() function is being used so that the License object which is received from the Trade Search API, is converted to the Apply 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:

On completing the flow, the same object structure which was being used earlier in the flow, gets changed into the request body structure for the update API: /tl-services/v1/_update, for this, the method which gets used is declared inside Utils folder. Method name: convertToResubmitTrade and it can be found in the below link:

https://github.com/egovernments/digit-ui-internals/blob/main/packages/modules/tl/src/utils/index.js

MDMS:

MDMS data which is being used here is same as the Apply flow only, as the flow structure used for edit trade is same as the Apply for Trade License. Please refer the link for detailed MDMS information.

Trade License - Apply Flow

Localization :

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

  • No labels