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"

 

API

ROLES

ACTION ID

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