Vedachalam Mahadevan
02/12/2025, 11:26 AMCeligo AI
02/12/2025, 11:26 AMAI generated answer (using internal Slack threads):Based on the provided Slack threads/conversations, the modification to the statement would be as follows:
sql
COALESCE(
CASE WHEN TO_CHAR({custrecord_muts_tss_date}, 'YYYY-MM-DD') =
TO_CHAR({custrecord_muts_tss_employee.employee<timebill.trandate}, 'YYYY-MM-DD')
THEN TO_char({custrecord_muts_tss_date}, 'YYYY/MM/DD')
END,
CASE WHEN TO_CHAR({custrecord_muts_tss_date},'YYYY-MM') =
TO_CHAR({custrecord_muts_tss_employee.employee<timebill.trandate}, 'YYYY-MM')
AND {custrecord_muts_tss_employee.employee<timebill.id} =
(SELECT MAX({custrecord_muts_tss_employee.employee<timebill.id}) FROM {table})
THEN '-'
END,
NULL
)
This modification adds a condition to the second CASE
statement to only return '-' for the row with the maximum {custrecord_muts_tss_employee.employee<timebill.id}
.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
02/12/2025, 11:26 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.808197916
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799572945
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.798885643
Celigo AI
02/12/2025, 11:26 AM