Skip to content

Commit

Permalink
Fix Columns on queries
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianMuhimbura committed Nov 13, 2023
1 parent 46529be commit 15c23fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
INSERT INTO stretchy_report (report_name,report_type,report_category,report_sql,description,core_report,use_report,self_service_user_report)
VALUES ("Amount requested in relation to the current amount of main products Policy Check", "Table", "Prequalification",
"SELECT
client_details.number_of_principal_loans,
client_details.current_loan_amount,
CASE
WHEN ('${loanProductId}' = 7) AND ((client_details.current_loan_amount)/${requestedAmount} <= 4) THEN 'GREEN'
WHEN ('${loanProductId}' = 7) AND ((client_details.current_loan_amount)/${requestedAmount} = 5) THEN 'GREEN'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
INSERT INTO stretchy_report (report_name,report_type,report_category,report_sql,description,core_report,use_report,self_service_user_report)
VALUES ("Payments outside the current term of the main product Policy Check", "Table", "Prequalification",
"SELECT
client_details.number_of_principal_loans,
client_details.number_of_pending_installments,
CASE
WHEN ('${loanProductId}' = 7) AND (client_details.number_of_pending_installments = 4) THEN 'GREEN'
WHEN ('${loanProductId}' = 7) AND (client_details.number_of_pending_installments > 4) THEN 'ORANGE'
Expand Down

0 comments on commit 15c23fd

Please sign in to comment.