To provide users with the details of the Bills and options to cancel the bill.
This screen is developed under the egov-abg-dev folder in the below file:
The details of the Bill is fetched by calling BillingService fetchBill API and the Consumer.No is used 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.
NextStep
On click on next step, it will go to cancel bill screen, there we need to select the options for reason for bill cancellation. Find more details here for the cancel bill screen - Cancel Bill
API
Action id
Roles
1
/ws-calculator/meterConnection/_search
1936
EMPLOYEE
2
/billing-service/bill/v2/_fetchbill
1862
EMPLOYEE
3
/ws-services/wc/_search
1900
SW_CEMP , WS_CEMP
4
/sw-services/swc/_search
1940
SW_CEMP , WS_CEMP
5
/property-services/property/_search
1897
SW_CEMP
, WS_CEMP
To provide users for selecting reasons and options to cancel the bill.
This screen is developed under the egov-abg-dev folder in the below file:
The reasons for bill cancellation options are fetching from MDMS service.
PREVIOUS STEP: on click on this it will go back to the bill details screen.
On click on cancel bill, cancel bill API (billing-service/bill/v2/_cancelbill
)will trigger and after the success of the cancel bill, it will route to the acknowledgement screen.
next step button file present in the below file path:
Acknowledgement Screen
for these modules, we are re-using the “rainmaker-ws” and “rainmaker-abg” modules, if they are any new keys, we are adding under “rainmaker-abg”.
API
Action id
Roles
1
billing-service/bill/v2/_cancelbill
1936
SUPERUSER
, SW_CEMP
, WS_CEMP
2
egov-mdms-service/v1/_search
954
next step button file present in the below file path: frontend/viewBillFooter.js at master · egovernments/frontend
.
.
Frontend Repo
Once the user login with WS_CEMP
or SW_CEMP
Roles, then the User will get the BillGenie tree option on the left side.
on click on BillGenie will get two options like below
on clicking on bill Cancellation, it will route to the search bill screen.
Provide Employee to search active bill, download bill and Cancel bill.
if tax head information can be wrong in a bill. So the bill needs to be cancelled.
Route - mSeva
Initial MDMS call is being made on page load
Note: only for the enabled service we can search, cancel the bill and serviceCategory drop downs options .it can be configured in uiCommonPay config by setting true to cancelBill
this path
example:
Table Structure
MUIDataTable
is used to implement the Table component
Every column entry is given as an Object
Any customizations at column level are by customBodyRender
hook available in all the columns ‘option’ property.
Once the data is fetched using egov-searcher/bill-genie/billswithaddranduser/_get
API, the returned data is formatted and dispatched to redux
As we can see from the image above, the data is put to a specific path inside props.
The table component now fetches the data from its props as shown below.
Bill details document is available here Bill Details
egov-mdms-service/v1/_search,
egov-searcher/bill-genie/billswithaddranduser/_get
API
ROLES
ACTION ID
1
egov-mdms-service/v1/_search
954
2
egov-searcher/bill-genie/billswithaddranduser/_get
SUPERUSER
, EMPLOYEE
1804
Initial page - frontend/billSearch.js at master · egovernments/frontend
Form rendering is taken care of in frontend/billSearchCard.js at master · egovernments/frontend
Table rendering is taken care of in frontend/searchResults.js at master · egovernments/frontend
The Bill search API and formatting data is in done in frontend/function.js at master · egovernments/frontend
For employee Action as “cancel bill “ so that employee can cancel the active bill on click of cancel bill, it will navigate to the Bill details page where we can see the bill amount and other details from there we can do the Cancel. frontend/viewBill.js at master · egovernments/frontend