Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

In Property Tax Module , while creating a Property user will get Acknowledgement form for creating Property, Similarly after doing assessment and payment for a financial year user can download receipt.

Here we see more about the configuration involved in each document downloads.

  1. Acknowledgement Download,

After Submitting the Property Create Application user can download / Print the Acknowledgement .

Reference.

Here generatePdfFromDiv method will take a screenshot of the PT Information screen and download/ print based on the first attribute been sent as “download“/”print”.

 let applicationDownloadObject = {
      label: { labelName: "Application", labelKey: "PT_APPLICATION" },
      link: () => {
        generatePdfFromDiv("download", subHeaderValue, "#property-review-form");
      },
      leftIcon: "assignment"
    };

    let applicationPrintObject  = {
      label: { labelName: "Application", labelKey: "PT_APPLICATION" },
      link: () => {
        generatePdfFromDiv("print", subHeaderValue, "#property-review-form");
      },
      leftIcon: "assignment"
    };

generatePdfFromDiv is a custom method present in egov-ui-kit package used for client side downloading of the Acknowledgement pdf.

Reference:

https://github.com/egovernments/frontend/blob/0a4e22c6045a735e4c308bda1a3952be936539fe/web/rainmaker/dev-packages/egov-ui-kit-dev/src/utils/PTCommon/index.js

Header of the PDF consists of the ULB logo and its contact details.

Header component for the pdf is present in

web\rainmaker\dev-packages\egov-ui-kit-dev\src\common\propertyTax\Property\components\PdfHeader\index.js

Reference:

https://github.com/egovernments/frontend/blob/6e7683214ab124237000a39869f2b0a3b99ea974/web/rainmaker/dev-packages/egov-ui-kit-dev/src/common/propertyTax/Property/components/PdfHeader/index.js

Usage as follow,

<PdfHeader header={{
                  logoUrl: logoUrl, corpCity: corpCity, ulbGrade: ulbGrade,
                  label: "PT_PDF_SUBHEADER"
                }}
                  subHeader={{
                    label: "PT_PROPERTY_ID",
                    value: `: ${get(properties, "propertyId")}`
                  }}>
                </PdfHeader>

Usually it will get hidden in screen and visible only on the PDF that are being generated.

2. Receipt Download

Once Payment for Assessment of a property / Mutation fee payment is done receipt will get generated.

to download Receipt , we will get the fileStoreId of the receipt.

downloadReceiptFromFilestoreIDdownloadReceiptFromFilestoreID(fileStoreId, "download")

similarly “print“ to print the receipt

downloadReceiptFromFilestoreIDdownloadReceiptFromFilestoreID needs to be imported from web\rainmaker\dev-packages\egov-common-dev\src\ui-utils\commons.js

Reference:

https://github.com/egovernments/frontend/blob/1ad9a9e63a4fdeff20d2939c071e4126928c6542/web/rainmaker/dev-packages/egov-common-dev/src/ui-utils/commons.js

if filestoreid is not present in receipt then we can create receipt from using the query string as below

queryStr = [
          { key: "key", value: "consolidatedreceipt" },
          { key: "tenantId", value: 'pb' }
        ]

and in request body send payment array for which payment receipt is needed.

 httpRequest(DOWNLOADRECEIPT.GET.URL, DOWNLOADRECEIPT.GET.ACTION, queryStr,
       { Payments: payloadReceiptDetails.Payments },
       { 'Accept': 'application/json' }, { responseType: 'arraybuffer' })
            .then(res => {         
               downloadReceiptFromFilestoreIDdownloadReceiptFromFilestoreID(res.filestoreIds[0], "download")
             });

3. Mutation Acknowledgement download/print.

It is Similar to the property create acknowledgement download/print.

same client side pdf generation using same generatePdfFromDiv method.

4. Mutation Certificate Download/print,

Once the Mutation application is approved , then user can download / print , here we are using server side pdf generation.

Reference

query string for preparing mutation certificate will be as follow,

 const queryStr = [
    { key: "key", value: "ptmutationcertificate" },
    { key: "tenantId", value: "pb" }
  ]

and in request body we we send the latest properties information.

 httpRequest("post", DOWNLOADRECEIPT.GET.URL, DOWNLOADRECEIPT.GET.ACTION, queryStr,
 { Properties }, { 'Accept': 'application/json' }, { responseType: 'arraybuffer' })
      .then(res => {
        res.filestoreIds[0]
        if (res && res.filestoreIds && res.filestoreIds.length > 0) {
          res.filestoreIds.map(fileStoreId => {
            downloadReceiptFromFilestoreID(fileStoreId, mode, tenantId)
          })
        }

  • No labels