Bill Amendment Apply

Apply for Bill Amendment:

Bill Amendment Gets initiated from the Individual modules , currently we have enabled for Water and Sewerage screens .

The option for the Billamend is shown based on the 3 Criteria's,

1. Based on the MDMS Service wise enabled using is isBillAmendmentEnabled Flag in the the MDMS moduleName: "BillingService" , masterDetails:  name: "BusinessService".

2. Based on The demand , if there is demand from the demand search for that consumer code then again the option wont be shown

3. Based on the Amendment search , if a Amendment Application was created already on the same consumer and it is not approved then we don't get option to create a new Bill amend from the connection details screen in individual Service.

Reference :

once all the conditions satisfies we procced to Apply for new Amendment application.

Reference:

Route -https://egov-micro-dev.egovernments.org/employee/bill-amend/apply

Stepper 1 :

Source path : https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/apply.js

All the drop down data are mapped through mdms response.

For to display MDMS data we have common container in UI Framework ( “getSelectField“ ).

In Bill Amendment: We used common container for Demand Revison Basis.

Sample JSON for Structure Type and Sub Structure Type :

 

jsonPath is used to store the data in specified path when clicking event triggers or on handleFieldChange.

sourceJsonPath is the path where the data is fetched to populate in the dropdown.

Mdms data :

Demand Revision Type data is fetched from https://github.com/egovernments/egov-mdms-data/blob/DEV/data/pb/BillAmendment/DemandRevisionBasis.json

Amount details is the first stepper :

Source Path: https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/applyResource/amountDetails.js

Stepper 2 :

Source Path: https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/applyResource/documentDetails.js

 

Mdms data : https://github.com/egovernments/egov-mdms-data/blob/DEV/data/pb/BillAmendment/documentObj.json

The data formatting logic is as shown below. prepareDocumentsUploadData(state, dispatch); in https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/utils/index.js

Stepper 3 :

Source path: https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/applyResource/summary.js

 

Apply Footer

Source path: https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/applyResource/footer.js

The Next, Previous and submit buttons are configured this json file.

 

Success Screen :

Souce path : https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/acknowledgement.js

Search-Preview :

Source Path : https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/search-preview.js

 

 Download PDF:

1 . Acknowledgement PDF

 

2. Credit/ Debit Note PDF:

 

Workflow :

Role

Action

Next State

Status

Role

Action

Next State

Status

EMPLOYEE, CITIZEN

null

APPROVALPENDING

INWORKFLOW

EMPLOYEE

APPROVALPENDING

APPROVED/REJECTED

ACTIVE/INACTIVE

 

API Call Role Action mapping:

API

Action id

Roles

API

Action id

Roles

1

/egov-mdms-service/v1/_search

954

 

2

billing-service/amendment/_create

2059

WS_CEMP , SW_CEMP

3

/billing-service/amendment/_update

2061

WS_APPROVER, SW_APPROVER

4

/filestore/v1/files/url

1528

 

5

billing-service/demand/_search

706

WS_CEMP , SW_CEMP ,WS_APPROVER, SW_APPROVER

6

/billing-service/amendment/_search

2060

WS_CEMP , SW_CEMP ,WS_APPROVER, SW_APPROVER

Â