...
web/rainmaker/dev-packages/egov-uc-dev/src/ui-config/screens/specs/uc/newCollection.js
MCS receipt implementation
below is the receipt form config here the data for the employee and citizen receipt are added the below code is added in between of the receipt
{ "style": "dot-line", "text": "_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _" },
below is the receipt data config here the data are fetched for from the external url with query params
"externalAPI": [ { "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", "queryParam": "moduleName=tenant&masterName=tenants&tenantId=uk&filter=%5B?(@.code=='{$.tenantId}')%5D", "apiRequest": null, "responseMapping":[ { "variable":"address", "value":"$.MdmsRes.tenant.tenants[0].address" }, { "variable":"phoneNumber", "value":"$.MdmsRes.tenant.tenants[0].contactNumber" }, { "variable":"website", "value":"$.MdmsRes.tenant.tenants[0].domainUrl" }, { "variable":"email", "value":"$.MdmsRes.tenant.tenants[0].emailId" }, { "variable": "logoImage", "value":"$.MdmsRes.tenant.tenants[0].logoId", "type":"image" }, { "variable": "municipalityName", "value":"$.MdmsRes.tenant.tenants[0].city.municipalityName" }, { "variable": "logo-header", "value":"$.MdmsRes.tenant.tenants[0].code", "localisation":{ "required":true, "prefix": "RECEIPT_MUNICIPALITY", "module":"rainmaker-receipt" } } ] }