Employee: Water and Sewerage Application Details

Objective

Provide Employee to purpose workflow actions.

Same screen is used for both application details and modify application details.

Based on the conditions, we are showing the details here.

Application Details:

On click on application number from inbox/search screen/connection search, it will route to application details screen.
Search call is made before render the screen and details populated based on the search response.

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/ApplicationDetails.js

Hook Details for application Details search:

let { isLoading, isError, data: applicationDetails, error } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, applicationNumber, serviceType); let workflowDetails = Digit.Hooks.useWorkflowDetails( { tenantId: tenantId, id: applicationNumber, moduleCode: applicationDetails?.processInstancesDetails?.[0]?.businessService, }, { enabled: applicationDetails?.processInstancesDetails?.[0]?.businessService ? true : false, } ); const { data: reciept_data, isLoading: recieptDataLoading } = Digit.Hooks.useRecieptSearch( { tenantId: stateCode, businessService: serviceType == "WATER" ? "WS.ONE_TIME_FEE" : "SW.ONE_TIME_FEE", consumerCodes: applicationDetails?.applicationData?.applicationNo }, { enabled: applicationDetails?.applicationData?.applicationType?.includes("NEW_") } ); const { data: oldData } = Digit.Hooks.ws.useOldValue({ tenantId, filters: { connectionNumber: applicationDetails?.applicationData?.connectionNo, isConnectionSearch: true }, businessService: serviceType, });

 

Application Details Screen:

 

Ad-hoc Rebate/penalty and View breakup details: Employee: Ad-hoc Rebate/Penalty and View Breakup in application details.

 

Timeline View:

 

It is common for all modules, find the path here: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/index.js

 

Downloads:

  1. Application:

Method Reference:

const applicationDownloadObject = { order: 3, label: t("WS_APPLICATION"), onClick: handleDownloadPdf, }; 

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/ApplicationDetails.js

 

2.Estimation Letter

After pending for Field inspection stage is done (if status is pending for approval) Estimation letter will get generated.

Method Reference:

const wsEstimateDownloadObject = { order: 1, label: t("WS_ESTIMATION_NOTICE"), onClick: () => getFiles([applicationDetails?.applicationData?.additionalDetails?.estimationFileStoreId], stateCode), };

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/ApplicationDetails.js

 

3. Sanction letter and Download Receipt

After payment stage is done (status is pending for connection activation) Sanction letter and receipt will get generated.

Sanction Fee Method Reference:

const sanctionDownloadObject = { order: 2, label: t("WS_SANCTION_LETTER"), onClick: () => getFiles([applicationDetails?.applicationData?.additionalDetails?.sanctionFileStoreId], stateCode), };

Receipt Method Reference:

const appFeeDownloadReceipt = { order: 4, label: t("DOWNLOAD_RECEIPT_HEADER"), onClick: () => getRecieptSearch(applicationDetails?.applicationData?.tenantId ? applicationDetails?.applicationData?.tenantId : Digit.ULBService.getCurrentTenantId(), reciept_data?.Payments?.[0], applicationDetails?.applicationData?.applicationNo, receiptKey ), }; 

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/ApplicationDetails.js

 

Localisation :

Localisation keys are added under the ‘rainmaker-ws’ locale module.

 

Water & Sewerage workflow:

Role

Action

Next State

Status

Role

Action

Next State

Status

Citizen/ Counter Employee/WS_CEMP/ SW_CEMP

INITIATE

INITIATED

INITIATED

Citizen/Counter Employee/WS_CEMP / SW_CEMP

EDIT

EDIT/ DOCUMENTVERIFICATION

Pending for Document Verification

Citizen/Counter Employee/WS_CEMP / SW_CEMP

Send Back to Citizen

Pending for Citizen Action



Pending for Citizen Action

WS_DOC_VERIFIER / SW_DOC_VERIFIER

VERIFY &FORWARD

FIELDVERIFICATION

Pending for Field Verification

WS_FIELD_INSPECTOR / SW_FIELD_INSPECTOR

VERIFY &FORWARD

PENDINGAPPROVAL

Pending for APproval

WS_APPROVER / SW_APPROVER

APPROVE

PENDINGPAYMENT

Pending for Payment

Citizen/Counter Employee/WS_CEMP / SW_CEMP

PAY

Approved

Approved

 

WS_APPROVER / SW_APPROVER

REJECT

Rejected

Rejected

WS_CLERK/SW_CLERK

Activate Connection

Connection activated

Connection activated

 

Employee Roles and Credentials:

Please find the document attached below:

DIGIT Login Credentials

API Call Role Action mapping:

API

Action id

Roles

API

Action id

Roles

1

/access/v1/actions/mdms/_get

870

 

2

/user/_search

604

 

3

/localization/messages/v1/_search

1531

 

4

/egov-workflow-v2/egov-wf/businessservice/_search

1743

EMPLOYEE

5

/ws-services/wc/_search

1900

WS_CEMP,WS_DOC_VERIFIER,WS_FIELD_INSPECTOR,WS_APPROVER,WS_CLERK

6

/sw-services/swc/_search

1940

SW_CEMP,SW_DOC_VERIFIER,SW_FIELD_INSPECTOR,SW_CLERK

7

/property-services/property/_search

1897

PT_CEMP,PT_DOC_VERIFIER,PT_FIELD_INSPECTOR,PT_APPROVER

8

/ws-services/wc/_create

1899

WS_CEMP

9

/filestore/v1/files/url

1528

EMPLOYEE

10

/ws-services/wc/_update

1901

WS_CEMP,WS_DOC_VERIFIER,WS_FIELD_INSPECTOR,WS_APPROVER,WS_CLERK

11

/sw-services/swc/_update

1939

SW_CEMP,SW_DOC_VERIFIER,SW_FIELD_INSPECTOR,SW_CLERK

12

/ws-calculator/waterCalculator/_estimate and /sw-calculator/sewerageCalculator/_estimate

1966,

1967

WS_CEMP,WS_DOC_VERIFIER,WS_FIELD_INSPECTOR,WS_APPROVER,WS_CLERK

SW_CEMP,SW_DOC_VERIFIER,SW_FIELD_INSPECTOR,SW_CLERK

13

/egov-hrms/employees/_search

1752