Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Objective

The trade license 'apply' is the major feature in TL Module. It allows Citizen or Counter Employee to create TL Applications for the current financial year.

Every application is a part of the workflow.

Once the user login with TL_CEMPRole, then the User will get the option for creating New TL Application in the TL card and as well as in the inbox..

...

File path: https://github.com/egovernments/digit-ui-internals/blob/main/packages/modules/tl/src/components/TLCard.js and https://github.com/egovernments/digit-ui-internals/blob/main/packages/modules/tl/src/components/inbox/DesktopInbox.js

Clicking of New Application it navigates to the New Trade License Application screen.

Route: https://qa.digit.org/digit-ui/employee/tl/new-application

...

File Path: https://github.com/egovernments/digit-ui-internals/blob/main/packages/modules/tl/src/pages/employee/NewApplication/index.js

Technical Implementation Details:

Initial MDMS call is being made on page load like old UI.

Mdms data :

Structure Type and Sub Structure Type field data is fetched from https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/common-masters/StructureType.json

Trade Category , Trade Type , Trade Sub Type field data is fetched from https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/TradeLicense/TradeType.json

Mohalla Data - https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/amritsar/egov-location/boundary-data.json (For Amritsar)

Accessories - https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/TradeLicense/AccessoriesCategory.json

Type of Ownership and Type of Subownership - https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/common-masters/OwnerShipCategory.json https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/common-masters/OwnerType.json

documents: https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/TradeLicense/documentObj.json

Data fetch , load and render :

  • Clicking on Submit button, tl-services/v1/_create api is called and create the application, after getting success response, we are calling update API tl-services/v1/_update.

Acknowledgement screen:

...

After Success of create and update calls, will route to acknowledgement screen.

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

ROLE ACTION MAPPING

S.NO

API

ROLES

ACTION ID

1

/egov-mdms-service/v1/_search

TL_CEMP

954

2

/tl-services/v1/_create

TL_CEMP

1685

3

/tl-services/v1/_update

TL_CEMP

1686