Objective: Provide employees with the capability to download bills.
Workflow Details
On the employee home screen, the Bill Genie module card contains the links related to Bill Genie screens.
Download Bills Screen
The process of downloading each bill and consolidating them in a single pdf happens at the backend(pdf-service).
A snapshot of the details returned by the API is given below:
According to these details, the Status and corresponding Action details are shown in the results table.
Statuses and their Actions available are:
Initiated → NA
Expired → Retry
Failed → Retry
InProgress → Cancel
Done → Download
When the status is done, that means totalrecords are equal to the recordscompleted. In this case, a filestore id is returned using which we can fetch the resulting pdf.
When the status is complete and 24hrs have passed then the status shows expired and the action is retry. In this case, the results are fetched again according to the requested criteria.
A snapshot of resulting pdf is shown below:
Technical Implementation Details
Download bills implementation can be found in this file: