diff --git a/configs/reports/configs/rl-reports.yml b/configs/reports/configs/rl-reports.yml index b7d91b87..28c570b4 100644 --- a/configs/reports/configs/rl-reports.yml +++ b/configs/reports/configs/rl-reports.yml @@ -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; \ No newline at end of file