Skip to content

Commit

Permalink
Update ws-receipt.json
Browse files Browse the repository at this point in the history
  • Loading branch information
snehal-eGov committed Dec 12, 2022
1 parent 3ec87bf commit 70e158b
Showing 1 changed file with 44 additions and 5 deletions.
49 changes: 44 additions & 5 deletions pdf-service/data-config/ws-receipt.json
Expand Up @@ -192,6 +192,42 @@
"module": "mgramseva-common"
}
},
{
"variable": "total_bill_amount",
"value": {
"path": "PDF_STATIC_LABEL_WATER_TOTAL_BILL_AMOUNT"
},
"type": "label",
"localisation": {
"required": true,
"prefix": null,
"module": "mgramseva-common"
}
},
{
"variable": "advance_adjusted_amount",
"value": {
"path": "PDF_STATIC_LABEL_WATER_ADVANCE_ADJUSTED_AMOUNT"
},
"type": "label",
"localisation": {
"required": true,
"prefix": null,
"module": "mgramseva-common"
}
},
{
"variable": "net_amount_due",
"value": {
"path": "PDF_STATIC_LABEL_WATER_NET_AMOUNT_DUE"
},
"type": "label",
"localisation": {
"required": true,
"prefix": null,
"module": "mgramseva-common"
}
},
{
"variable": "total_paid",
"value": {
Expand Down Expand Up @@ -444,7 +480,6 @@
"module": "mgramseva-common"
}
},

{
"variable": "totalAmountDue",
"value": {
Expand Down Expand Up @@ -483,7 +518,7 @@
"path": "$.paymentDetails[0].bill.billDetails"
},
"type":"function",
"format":"var y=0,x=arguments[0];x.sort(function(a, b){return b.fromPeriod - a.fromPeriod}); return (((new Date(x[0].toPeriod+19800000).getDate())<10?('0'+new Date(x[0].toPeriod+19800000).getDate()):new Date(x[0].toPeriod+19800000).getDate())+'/'+((new Date(x[0].toPeriod+19800000).getMonth()+1)<10?('0'+(new Date(x[0].toPeriod+19800000).getMonth()+1)):(new Date(x[0].toPeriod+19800000).getMonth()+1))+'/'+new Date(x[0].toPeriod+19800000).getFullYear())"
"format":"var y=0,x=arguments[0];x.sort(function(a, b){return b.toPeriod - a.toPeriod}); return (((new Date(x[0].toPeriod+19800000).getDate())<10?('0'+new Date(x[0].toPeriod+19800000).getDate()):new Date(x[0].toPeriod+19800000).getDate())+'/'+((new Date(x[0].toPeriod+19800000).getMonth()+1)<10?('0'+(new Date(x[0].toPeriod+19800000).getMonth()+1)):(new Date(x[0].toPeriod+19800000).getMonth()+1))+'/'+new Date(x[0].toPeriod+19800000).getFullYear())"
},
{
"variable": "billIssueDate",
Expand Down Expand Up @@ -552,7 +587,7 @@
"derived": [
{
"variable": "dueason_date",
"formula": "{{totalPaid}}>{{totalAmountDue}}?{{totalPaid}}-{{totalAmountDue}}:{{totalAmountDue}}-{{totalPaid}}"
"formula": "{{totalPaid}}>{{totalAmountDue}}?-({{totalPaid}}-{{totalAmountDue}}):{{totalAmountDue}}-{{totalPaid}}"
},{
"variable":"waterquality_rate_value",
"formula":"'{{waterquality_rate}}'=='NA'? 'NA' : '{{waterquality_rate}}/5'"
Expand All @@ -569,7 +604,11 @@
{
"variable":"address",
"formula":"['{{doorHouseNo}}', '{{streetName}}', '{{mohalla}}'].filter(x=>x != 'NA').join(', ')"
}
},
{
"variable":"totalBillAmount",
"formula":"{{totalAmountDue}}"
}
]
},
{
Expand Down Expand Up @@ -710,7 +749,7 @@
"value": "$.LastMonthSummary.previousMonthYear"
}
]
},
},
{
"path": "http://echallan-services.mgramseva:8080/echallan-services/eChallan/v1/_lastMonthSummary",
"queryParam": "tenantId=$.tenantId,currentDate=$.transactionDate",
Expand Down

0 comments on commit 70e158b

Please sign in to comment.