Water & Sewerage- Bill Details

Objective

To provide users the details of the Bills and options to pay the bill.

Citizen can do the payment by clicking the “Pay” action button and Employee also will be able to view the Bill Details and able to “Collect” the payment from citizen.

Both Citizen and Employee would be able to Download the Bill Details as PDF file.

Implementation Details:

This screen is developed under the egov-wns-dev folder in the below file:

viewBill.js

The details of the Bill is fetched by calling BillingService fetchBill API and the Consumer.No is used to in the query param.

FetchBill API returns the Bill Object which contains all the details about the bill including Billing Period, Due Amount, Due Date, and information about the Tax, Cess, Rebate, Penalty applied in this bill.

For the Water Connection, the Bill will be expired as per the configured “DemandExpiryDate” value in the BillingPeriod MDMS file.

For the Sewerage Connection, the Bill will be expired as per the configured “DemandExpiryDate” value in the BillingPeriod MDMS file.

Add Rebate / Penalty:

Employee will be able to add Rebate or Penalty on the bill and the amount would be reflected in the Bill amount. To do this, the UI would call the “/_applyAdhocTax“ API available in the Water / Sewerage service.

Localisation:

Localisation keys used in the ViewBill page are added under “rainmaker-ws” locale module and the same should be used if any new keys are added in this page.

 

API Call Role Action mapping:

API

Action id

Roles

API

Action id

Roles

1

/ws-calculator/meterConnection/_search

1936

WS_CEMP,EMPLOYEE

2

/billing-service/bill/v2/_fetchbill

1862

CITIZEN,EMPLOYEE

3

/ws-services/wc/_search

1900

CITIZEN,WS_CEMP,WS_DOC_VERIFIER,WS_FIELD_INSPECTOR,WS_APPROVER,WS_CLERK

4

/sw-services/swc/_search

1940

CITIZEN,SW_CEMP,SW_DOC_VERIFIER,SW_FIELD_INSPECTOR,SW_CLERK

5

/property-services/property/_search

1897

CITIZEN, PT_CEMP,PT_DOC_VERIFIER,PT_FIELD_INSPECTOR,PT_APPROVER

6

/collection-services/payments/_create

1863

SUPERUSER,EMPLOYEE