Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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": "_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _" },

https://github.com/egovernments/ukd-rainmaker-customization/blob/master/configs/pdf-service/format-config/misc-receipt.json#L521

below is the receipt data config here the data are fetched for from the external url with query params

https://github.com/egovernments/ukd-rainmaker-customization/blob/master/configs/pdf-service/data-config/misc-receipt.json#L499

"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" } } ] }

...