Bill Amendment
Search Receipt
Objective
Provide Employee to search Amendment Applications.
Route - https://egov-micro-dev.egovernments.org/employee/bill-amend/search
Technical Implementation Details
Â
Initial MDMS call is being made on page load.
Â
billGineiURL: "egov-searcher/bill-genie/waterbills/_get" businessService: "ws-services-calculation" code: "WS" collectionModesNotAllowed: ["DD"] demandUpdateTime: 86400000 isAdvanceAllowed: true isBillAmendmentEnabled: true isVoucherCreationEnabled: false partPaymentAllowed: true
Service Category In Amendment screen is shown Based on the isBillAmendmentEnabled flag present in the MDMS moduleName:Â
"BillingService"
, masterDetails:Â name: "BusinessService
".All the Forms and its functionality are in https://github.com/egovernments/frontend/tree/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/searchResources path.
Table rendering is taken care in https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/searchResources/searchResults.js
The BillAMD search API and formatting data is in done in https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/searchResources/searchResults.js
In Bill Amendment search happens based on the results from the Amendment search and Individual Module search details based on the given search criteria. https://github.com/egovernments/frontend/blob/develop/web/rainmaker/dev-packages/egov-billamend-dev/src/ui-config/screens/specs/bill-amend/searchResources/function.js
Table Structure
MUIDataTable
is used to implement Table component.Every columns are entry given as an Object
{
labelName: "Bill No.",
labelKey: "BILL_COMMON_SERVICE_TYPE",
}
,
Any customizations at column level is by
customBodyRender
hook available in all the colums ‘option’ property.
Â
Â
Data fetch,load and render :
Once the data is fetched using API, the returned data is formatted and dispatched to redux
As we can see from the image above, the data is put to specific path inside props.
Table component now fetches the data from its props as shown below.
Â
Â
Api Used :
egov-mdms-service/v1/_search
/billing-service/amendment/_search
ROLE ACTION MAPPING
API | ROLES | ACTION ID | |
---|---|---|---|
1 |
| | Â |
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
Â
Â