Cancel Receipt
Objective
Provide Employee to Cancel a Receipt against a Receipt number .
Route - https://egov-micro-qa.egovernments.org/employee/receipts/viewReceipt?receiptNumbers=PT/107/2020-21/068700&tenantId=pb.amritsar&businessService=PT
View Receipt
After searching a receipt on click of cancel receipt it navigates to viewing the receipt details.
Â
View Receipt implementation is present in https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-abg-dev/src/ui-config/screens/specs/receipts/viewReceipt.js
On click of proceed to cancel it navigates to the receipt cancellation.
Â
Technical Implementation Details
Initial MDMS call is being made on page load.
Â
moduleDetails: [ { moduleName: "common-masters", masterDetails: [ { name: "CancelReceiptReason" } ] } ]
All the Forms and its functionality are in
https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-abg-dev/src/ui-config/screens/specs/receipts/cancelReceiptResource/cancelReceiptDetails.jsThe Validation of form and Create Demand is in done in
https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-abg-dev/src/ui-config/screens/specs/receipts/cancelReceiptResource/cancelReceiptFooter.jsData 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
ROLE ACTION MAPPING
API | ROLES | ACTION ID | |
---|---|---|---|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
Â