Remove cancelled TECNs from expirations
This commit is contained in:
parent
6e957afafe
commit
0fdf8179e1
@ -78,7 +78,8 @@ public class ECNService : IECNService {
|
||||
StringBuilder queryBuilder = new StringBuilder();
|
||||
queryBuilder.Append("select ECNNumber, IsTECN, ExpirationDate, ExtensionDate, OriginatorID, Title ");
|
||||
queryBuilder.Append($"from ECN where IsTECN = 1 and ");
|
||||
queryBuilder.Append("Cancelled = 0 and Deleted = 0;");
|
||||
queryBuilder.Append("Cancelled = 0 and Deleted = 0 and ");
|
||||
queryBuilder.Append($"CancellationDate is null;");
|
||||
|
||||
IEnumerable<ECN> activeTecns = await _dalService.QueryAsync<ECN>(queryBuilder.ToString());
|
||||
|
||||
@ -115,7 +116,8 @@ public class ECNService : IECNService {
|
||||
StringBuilder queryBuilder = new StringBuilder();
|
||||
queryBuilder.Append("select * from ECN ");
|
||||
queryBuilder.Append($"where IsTECN = 1 and ");
|
||||
queryBuilder.Append("Cancelled = 0 and Deleted = 0;");
|
||||
queryBuilder.Append("Cancelled = 0 and Deleted = 0 and ");
|
||||
queryBuilder.Append($"CancellationDate is null;");
|
||||
|
||||
IEnumerable<ECN> activeTecns = (await _dalService.QueryAsync<ECN>(queryBuilder.ToString()));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user