Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions configs/reports/configs/rl-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -818,3 +818,82 @@ ReportDefinitions:
LEFT JOIN eg_user usr ON usr.id = payment.createdby::integer
WHERE pd.businessservice = 'rl-services'
orderby: ORDER BY pd.receiptdate DESC;

- reportName: RLdetailreportdemo
summary: Details of application in Rent & Lease service learning
version: 1.0.0
moduleName: rainmaker-rl
additionalConfig:
print:
pdfPageSize: A4
sourceColumns:
- name: Application Number
label: Application Number
type: string
source: rl
total: false
- name: Application type
label: Application type
type: string
source: rl
total: false
- name: Property ID
label: Property ID
type: string
source: rl
total: false
- name: Owner/Tenant Name
label: Owner/Tenant Name
type: string
source: rl
total: false
- name: Rent Amount
label: Rent Amount
type: number
source: rl
total: true
- name: Application Status
label: Application Status
type: string
source: rl
total: false
- name: Application Creation Date
label: Application Creation Date
type: string
source: rl
total: false
searchParams:
- name: status
label: Application Status
type: singlevaluelist
pattern: 'list://INITIATED:Initiated,FORWARD_FOT_SETLEMENT:Forward For Settlement,CLOSED:Closed, APPROVED:Approved,PENDINGFORAPPROVAL:Pending For Approval , PENDING_FOR_DOCUMENT_VERIFY:Pending For Document Verify,PENDING_FOR_PAYMENT:Pending For Payment,PENDING_REQUEST_FOR_DISCONNECTION:Pending Request For Disconnection'
source: rl
isMandatory: false
searchClause: AND status = $status
- name: ulb
label: ULB
type: singlevaluelist
pattern: 'http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name'
source: rl
isMandatory: false
searchClause: AND tenant_id = $ulb
query: |
SELECT
a.application_number AS "Application Number",
application_type,
a.property_id AS "Property ID",
u.name AS "Owner/Tenant Name",
rr.revised_rent AS "Rent Amount",
a.status AS "Application Status",
TO_TIMESTAMP(a.created_time / 1000) AS "Application Creation Date"
FROM public.eg_rl_allotment a

LEFT JOIN public.eg_rl_owner_info o
ON a.id = o.allotment_id

LEFT JOIN public.eg_user u
ON o.user_uuid = u.uuid

LEFT JOIN public.eg_rl_rent_revision rr
ON a.id = rr.allotment_id
order by: ORDER BY a.created_time DESC;