Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
RAIN-2695 : Download receipt dynamic config issue fix (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagankumar-egov authored May 24, 2021
1 parent 0c6b4b2 commit 12bed31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion egov-pdf/src/routes/payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ router.post(
var tenantId = req.query.tenantId;
var consumerCode = req.query.consumerCode;
var bussinessService = req.query.bussinessService;
var receiptKey = req.query.pdfKey;
var requestinfo = req.body;
if (requestinfo == undefined) {
return renderError(res, "requestinfo can not be null", 400);
Expand All @@ -41,7 +42,7 @@ router.post(
var payments = resProperty.data;
if (payments && payments.Payments && payments.Payments.length > 0) {
var pdfResponse;
var pdfkey = config.pdf.consolidated_receipt_template;
var pdfkey = receiptKey || config.pdf.consolidated_receipt_template;
try {
pdfResponse = await create_pdf(
tenantId,
Expand Down

0 comments on commit 12bed31

Please sign in to comment.