View Receipt and Cancel
Objective
Provide Employee to Cancel a Receipt against a Receipt number.
Route - https://qa.digit.org/digit-ui/employee/receipts/details/PT/PT%2F107%2F2021-22%2F226438
View Receipt
After searching a receipt on a click of Receipt number it navigates to viewing the receipt details.
and view receipt details is mentioned over https://github.com/egovernments/digit-ui-internals/blob/main/packages/modules/receipts/src/pages/ReceiptDetails.js
Technical Implementation Details
Initial MDMS call is being made on page load.
CancelReceiptReason mdms is used for showing multiple reasons for cancelling.moduleDetails: [ { moduleName: "common-masters", masterDetails: [ { name: "CancelReceiptReason" } ] } ]
Cancel Receipt,
Action modal, This comes up on click of cancel receipt.
This cancel receipt action will be shown only for the following state of receipt.Receipt?.paymentStatus !== "CANCELLED" && Receipt?.paymentStatus !== "DEPOSITED" && (Receipt?.instrumentStatus == "APPROVED" || Receipt?.instrumentStatus == "REMITTED"
Data fetch , load and render :
Once the Receipt is searched using
collection-services/payments/{selectedbusinessService}/_search
API , then we can cancel the receipt using/collection-services/payments/{selectedbusinessService}/_workflow
Api
Acknowledgement screen:
It gets shown once the cancel receipt is clicked
File details,
https://github.com/egovernments/digit-ui-internals/blob/main/packages/modules/receipts/src/pages/ReceiptAcknowledgement.jsROLE ACTION MAPPING
API | ROLES | ACTION ID | |
---|---|---|---|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|