Crystal Reports 8.5 and Oracle tables.
Pending assignments are any assignment not completed. Backlogged assignments are assignments pending more than 30 business days.
The following formula will give me pending assignments for any given date (DDATE). Now I would like to test if the assignment was pending more than 30 days at DDATE. If this statement is true (PendCnt is incremented), what is the syntax to check if the assignment is backlogged?
Shared NumberVar PendCnt;
if ( (IsNull({ALL_ASSIGNMENTS.Date Completed})) or ({ALL_ASSIGNMENTS.Date Completed} > {@DDATE}) ) and
(Date({ALL_ASSIGNMENTS.Date Assigned}) <= {@DDATE}) then PendCnt := PendCnt + 1
Pending assignments are any assignment not completed. Backlogged assignments are assignments pending more than 30 business days.
The following formula will give me pending assignments for any given date (DDATE). Now I would like to test if the assignment was pending more than 30 days at DDATE. If this statement is true (PendCnt is incremented), what is the syntax to check if the assignment is backlogged?
Shared NumberVar PendCnt;
if ( (IsNull({ALL_ASSIGNMENTS.Date Completed})) or ({ALL_ASSIGNMENTS.Date Completed} > {@DDATE}) ) and
(Date({ALL_ASSIGNMENTS.Date Assigned}) <= {@DDATE}) then PendCnt := PendCnt + 1