Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

pt reports not working fix #763

Open
wants to merge 1 commit into
base: UAT
Choose a base branch
from
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
162 changes: 81 additions & 81 deletions configs/reports/configs/pt-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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