Skip to content

Commit

Permalink
RAIN-3414 Added PDF changes for Logo image (#1331)
Browse files Browse the repository at this point in the history
* RAIN-3414 Added PDF changes for Logo image

* Updated tennantid

* Updated tenantid pg

* Updated Tenant Id pg

* RAIN-3414 Updated Tenant id pg
  • Loading branch information
srishti-egov committed Jan 12, 2022
1 parent 510ff1c commit 9cdd12e
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 39 deletions.
28 changes: 22 additions & 6 deletions pdf-service/data-config/bpa-revocation.json
Expand Up @@ -10,12 +10,7 @@
{
"mappings": [
{
"direct": [
{
"variable": "logoImage",
"url": "https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png",
"type": "image"
},
"direct": [
{
"variable": "applicationNo",
"value": {
Expand Down Expand Up @@ -227,6 +222,27 @@
"value": "$.ProcessInstances[?(@.action=='REVOCATE')].comment"
}
]
},
{
"path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get",
"queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D",
"apiRequest": null,
"responseMapping": [
{
"variable": "logoImage",
"value": "$.MdmsRes.tenant.tenants[0].logoId",
"type": "image"
},
{
"variable": "logo_header",
"value": "$.MdmsRes.tenant.tenants[0].code",
"localisation": {
"required": true,
"prefix": "TENANT_TENANTS",
"module": "rainmaker-common"
}
}
]
}
]
}
Expand Down
28 changes: 22 additions & 6 deletions pdf-service/data-config/buildingpermit-low.json
Expand Up @@ -10,12 +10,7 @@
{
"mappings": [
{
"direct": [
{
"variable": "logoImage",
"url": "https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png",
"type": "image"
},
"direct": [
{
"variable": "applicationNo",
"value": {
Expand Down Expand Up @@ -600,6 +595,27 @@
"value" : "$.Payments[0].paymentDetails[0].bill.billDetails[0].amount"
}
]
},
{
"path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get",
"queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D",
"apiRequest": null,
"responseMapping": [
{
"variable": "logoImage",
"value": "$.MdmsRes.tenant.tenants[0].logoId",
"type": "image"
},
{
"variable": "logo_header",
"value": "$.MdmsRes.tenant.tenants[0].code",
"localisation": {
"required": true,
"prefix": "TENANT_TENANTS",
"module": "rainmaker-common"
}
}
]
}
]
},
Expand Down
28 changes: 22 additions & 6 deletions pdf-service/data-config/buildingpermit.json
Expand Up @@ -10,12 +10,7 @@
{
"mappings": [
{
"direct": [
{
"variable": "logoImage",
"url": "https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png",
"type": "image"
},
"direct": [
{
"variable": "applicationNo",
"value": {
Expand Down Expand Up @@ -618,6 +613,27 @@
"isUpperCaseRequired": true
}
]
},
{
"path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get",
"queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D",
"apiRequest": null,
"responseMapping": [
{
"variable": "logoImage",
"value": "$.MdmsRes.tenant.tenants[0].logoId",
"type": "image"
},
{
"variable": "logo_header",
"value": "$.MdmsRes.tenant.tenants[0].code",
"localisation": {
"required": true,
"prefix": "TENANT_TENANTS",
"module": "rainmaker-common"
}
}
]
}
]
},
Expand Down
26 changes: 21 additions & 5 deletions pdf-service/data-config/occupancy-certificate.json
Expand Up @@ -11,11 +11,6 @@
"mappings": [
{
"direct": [
{
"variable": "logoImage",
"url": "https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png",
"type": "image"
},
{
"variable": "applicationNo",
"value": {
Expand Down Expand Up @@ -399,6 +394,27 @@
"isUpperCaseRequired": true
}
]
},
{
"path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get",
"queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D",
"apiRequest": null,
"responseMapping": [
{
"variable": "logoImage",
"value": "$.MdmsRes.tenant.tenants[0].logoId",
"type": "image"
},
{
"variable": "logo_header",
"value": "$.MdmsRes.tenant.tenants[0].code",
"localisation": {
"required": true,
"prefix": "TENANT_TENANTS",
"module": "rainmaker-common"
}
}
]
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions pdf-service/format-config/bpa-revocation.json
Expand Up @@ -9,8 +9,8 @@
"columns": [
{
"image": "{{logoImage}}",
"width": 70,
"height": 70,
"width": 50,
"height": 61.25,
"alignment": "left"
},
{
Expand All @@ -27,8 +27,8 @@
},
{
"image": "{{logoImage}}",
"width": 70,
"height": 70,
"width": 50,
"height": 61.25,
"alignment": "right"
}
]
Expand Down
8 changes: 4 additions & 4 deletions pdf-service/format-config/buildingpermit-low.json
Expand Up @@ -23,8 +23,8 @@
"columns": [
{
"image": "{{logoImage}}",
"width": 70,
"height": 70,
"width": 50,
"height": 61.25,
"alignment": "left"
},
{
Expand All @@ -49,8 +49,8 @@
},
{
"image": "{{logoImage}}",
"width": 70,
"height": 70,
"width": 50,
"height": 61.25,
"alignment": "right"
}
]
Expand Down
8 changes: 4 additions & 4 deletions pdf-service/format-config/buildingpermit.json
Expand Up @@ -23,8 +23,8 @@
"columns": [
{
"image": "{{logoImage}}",
"width": 70,
"height": 70,
"width": 50,
"height": 61.25,
"alignment": "left"
},
{
Expand All @@ -49,8 +49,8 @@
},
{
"image": "{{logoImage}}",
"width": 70,
"height": 70,
"width": 50,
"height": 61.25,
"alignment": "right"
}
]
Expand Down
8 changes: 4 additions & 4 deletions pdf-service/format-config/occupancy-certificate.json
Expand Up @@ -9,8 +9,8 @@
"columns": [
{
"image": "{{logoImage}}",
"width": 70,
"height": 70,
"width": 50,
"height": 61.25,
"alignment": "left"
},
{
Expand Down Expand Up @@ -38,8 +38,8 @@
},
{
"image": "{{logoImage}}",
"width": 70,
"height": 70,
"width": 50,
"height": 61.25,
"alignment": "right"
}
]
Expand Down

0 comments on commit 9cdd12e

Please sign in to comment.