diff --git a/configs/reports/configs/pt-reports.yml b/configs/reports/configs/pt-reports.yml index d6d21c11..b6b36a6b 100644 --- a/configs/reports/configs/pt-reports.yml +++ b/configs/reports/configs/pt-reports.yml @@ -1595,86 +1595,86 @@ ReportDefinitions: query: | select * from eg_pt_rollover where tenantid !='uk.testing' - - reportName: PTMutationULBWiseApplicationStatusReport - summary: Number of applications by there status - version: 1.0.0 - moduleName: rainmaker-pt - sourceColumns: - - name: tenantId - label: report.pt.tenantid - type: string - source: pt - total: false - - name: total - label: report.pt.total - type: string - source: pt - total: true - - name: applicationinitiated - label: PT_INITIATED - type: number - source: pt - total: true - - name: pendingpayment - label: PT_PENDINGPAYMENT - type: number - source: pt - total: true - - name: fieldverified - label: PT_VERIFY - type: number - source: pt - total: true - - name: mutationfeepaid - label: PT_PAY - type: number - source: pt - total: true - - name: documentverified - label: PT_FORWARD - type: number - source: pt - total: true - - name: approved - label: PT_APPROVE - type: number - source: pt - total: true - - name: rejected - label: PT_REJECT - type: number +- reportName: PTMutationULBWiseApplicationStatusReport + summary: Number of applications by there status + version: 1.0.0 + moduleName: rainmaker-pt + sourceColumns: + - name: tenantId + label: report.pt.tenantid + type: string + source: pt + total: false + - name: total + label: report.pt.total + type: string + source: pt + total: true + - name: applicationinitiated + label: PT_INITIATED + type: number + source: pt + total: true + - name: pendingpayment + label: PT_PENDINGPAYMENT + type: number + source: pt + total: true + - name: fieldverified + label: PT_VERIFY + type: number + source: pt + total: true + - name: mutationfeepaid + label: PT_PAY + type: number + source: pt + total: true + - name: documentverified + label: PT_FORWARD + type: number + source: pt + total: true + - name: approved + label: PT_APPROVE + type: number + source: pt + total: true + - name: rejected + label: PT_REJECT + type: number + source: pt + total: true + - name: cancelled + label: PT_CANCELLED + type: number + source: pt + total: true + searchParams: + - name: fromDate + label: reports.pt.fromDate + type: epoch source: pt - total: true - - name: cancelled - label: PT_CANCELLED - type: number + isMandatory: false + searchClause: AND pi.lastmodifiedtime >= $fromDate + - name: toDate + label: reports.pi.toDate + type: epoch source: pt - total: true - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND pi.lastmodifiedtime >= $fromDate - - name: toDate - label: reports.pi.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND pi.lastmodifiedtime <= $toDate - query: | - SELECT initcap(split_part(tenantId, '.', 2)) as tenantId, - count(*) as total, - SUM(CASE action when 'OPEN' then 1 else 0 end) as applicationinitiated, - SUM(CASE action when 'SKIP_PAYMENT' then 1 else 0 end) as pendingpayment, - SUM(CASE action when 'VERIFY' then 1 else 0 end) as fieldverified, - SUM(CASE action when 'PAY' then 1 else 0 end) as mutationfeepaid, - SUM(CASE action when 'FORWARD' then 1 else 0 end) as documentverified, - SUM(CASE action when 'APPROVE' then 1 else 0 end) as approved, - SUM(CASE action when 'REJECT' then 1 else 0 end) as rejected, - SUM(CASE action when 'CANCELLED' then 1 else 0 end) as cancelled - FROM eg_wf_processinstance_v2 as pi - WHERE pi.tenantid != 'uk.testing' - groupby: GROUP BY tenantid - orderby: ORDER BY tenantid asc + isMandatory: false + searchClause: AND pi.lastmodifiedtime <= $toDate + query: | + SELECT initcap(split_part(tenantId, '.', 2)) as tenantId, + count(*) as total, + SUM(CASE action when 'OPEN' then 1 else 0 end) as applicationinitiated, + SUM(CASE action when 'SKIP_PAYMENT' then 1 else 0 end) as pendingpayment, + SUM(CASE action when 'VERIFY' then 1 else 0 end) as fieldverified, + SUM(CASE action when 'PAY' then 1 else 0 end) as mutationfeepaid, + SUM(CASE action when 'FORWARD' then 1 else 0 end) as documentverified, + SUM(CASE action when 'APPROVE' then 1 else 0 end) as approved, + SUM(CASE action when 'REJECT' then 1 else 0 end) as rejected, + SUM(CASE action when 'CANCELLED' then 1 else 0 end) as cancelled + FROM eg_wf_processinstance_v2 as pi + WHERE pi.tenantid != 'uk.testing' + groupby: GROUP BY tenantid + orderby: ORDER BY tenantid asc