This commit is contained in:
@@ -5099,7 +5099,7 @@ namespace AyaNova.Biz
|
||||
//confirm customer is active before proceeding
|
||||
if (!await ct.Customer.AsNoTracking().Where(x => x.Id == p.CustomerId).Select(x => x.Active).FirstOrDefaultAsync())
|
||||
{
|
||||
log.LogTrace($"PM {p.Serial} has an Inactive customer selected so it will be skipped for generation");
|
||||
log.LogDebug($"PM {p.Serial} has an Inactive customer selected so it will be skipped for generation");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -5138,7 +5138,7 @@ namespace AyaNova.Biz
|
||||
{
|
||||
p.Active = false;
|
||||
await ct.SaveChangesAsync();
|
||||
log.LogTrace($"PM {p.Serial} has reached it's stop generating date and has been automatically deactivated");
|
||||
log.LogDebug($"PM {p.Serial} has reached it's stop generating date and has been automatically deactivated");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user