Versions Compared

Key

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

...

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

...

Reference.

View file
namepreview-PB-PT-2020-04-13-004759.pdf

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

Code Block
 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 pdfof the PT Application , application is generated and downloaded.

Reference:

https://github.com/egovernments/frontend/blob/0a4e22c6045a735e4c308bda1a3952be936539feedd5906c8562c94e80bee10943403316b47e913d/web/rainmaker/dev-packages/egov-ui-kit-dev/src/utils/PTCommonpdfUtils/indexgeneratePTAcknowledgment.js

Header Generation 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,

Code Block
<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.

is explained in

Generation of Acknowledgement PDF

2. Receipt Download

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

...

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

on click of download/ print .same client side pdf generation using same generatePdfFromDiv method.of the PT Mutation Application , application is generated and downloaded.

Reference:

https://github.com/egovernments/frontend/blob/154afa9e97ab50201602aaef05f672c5c6c6d3ca/web/rainmaker/dev-packages/egov-ui-kit-dev/src/utils/pdfUtils/generatePTMAcknowledgement.js

Generation of PDF is explained in

Generation of Acknowledgement PDF

4. Mutation Certificate Download/print,

...