Filtering out deleted and cancelled ECNs and CAs
This commit is contained in:
@ -76,7 +76,7 @@ public class CorrectiveActionService : ICorrectiveActionService {
|
||||
|
||||
StringBuilder queryBuilder = new();
|
||||
queryBuilder.Append($"select count(CANo) as count from _8DCorrectiveAction ");
|
||||
queryBuilder.Append($"where CANo={number} and ");
|
||||
queryBuilder.Append($"where CANo={number} and Deleted=0 and ");
|
||||
queryBuilder.Append($"(ClosedDate is null or ClosedDate >= '{DateTimeUtilities.MAX_DT.ToString("yyyy-MM-dd HH:mm")}')");
|
||||
|
||||
int rowsReturned = (await _dalService.QueryAsync<int>(queryBuilder.ToString())).FirstOrDefault();
|
||||
|
Reference in New Issue
Block a user