View Receipt - Cancel UI Flow

Objective

Provide Employee to Cancel a Receipt against a Receipt number.

View Receipt

After searching a receipt with a click of Receipt number it navigates to viewing the receipt details.

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 with the click of cancel receipt. This cancel receipt action will be shown only for the following state of receipt.

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.js

Role Action Mapping

API

ROLES

ACTION ID

1

egov-mdms-service/v1/_search

CR_PT

954

2

collection-services/payments/PT/_search

CR_PT

2029

3

/collection-services/payments/PT/_workflow

CR_PT

2028

Last updated

​All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.