...
Parameters required for Searching a bill:
Service Category → It is a mandatory parameter
Bill No → Every bill in the system has a unique Bill No.
Consumer ID/Property ID → It is a dynamic ID which is dependent on the selection of Service Category.
→ If selected service category is either Water or Sewerage then Consumer ID is used
...
Hooks/Utils Used:
To Download a bill → A util function named downloadBill is used which is defined in this file
This util function is inside Digit Utils hence it can be called anywhere throughout the application like this Digit.Utils.downloadBill(consumerCode, businessService, "consolidatedreceipt")
To Search a bill → A hook named useBillSearch is used to search bills which is defined in this file
To fetch the data for service Category dropdown → A hook named useCommonMDMS is used to fetch this data. This hook is called with the following parameters:
Digit.Hooks.useCommonMDMS(tenantId, "BillingService", "BillsGenieKey");
...
API Endpoint | API description | Employee Roles |
---|---|---|
| → To search bills → Returns a list of bills according to the search criteria | Employee ,Bill Genie Employee |
| → To download bills according to the search criteria → Returns a pdf file | Employee, Bill Genie Employee |
Localization :
Localization keys are added under the rainmaker-abg
locale module. Below is the example of few locale labels.
...