This commit is contained in:
2021-06-07 22:35:30 +00:00
parent b734548fdb
commit 9b65769618

View File

@@ -996,7 +996,9 @@ namespace AyaNova.Biz
}
//OVERDUE COMPLETION
#region COMPLETE BY OVERDUE
//COMPLETE BY OVERDUE
if (ayaEvent == AyaEvent.Created && oProposed.CompleteByDate != null)
{// WorkorderCompletedStatusOverdue Created here on workorder creation for any subscribers
// State notify event processor below has more notes and details and will remove this event if set to a completed state
@@ -1075,9 +1077,7 @@ namespace AyaNova.Biz
}//CREATED overdue completion
//todo: contract response time notification
#endregion
}//end of process notifications
@@ -1294,7 +1294,7 @@ namespace AyaNova.Biz
}//workorder status change event
//# OVERDUE TO COMPLETED
//# COMPLETE BY OVERDUE
{
//NOTE: the initial notification is created by the Workorder Header notification as it's where this time delayed notification is first generated
//the only job here in state notification is to remove any prior finish overdue notifications waiting if a new state is selected that is a completed state
@@ -1311,7 +1311,7 @@ namespace AyaNova.Biz
//Workorder was just set to a completed status so remove any notify events lurking to deliver for overdue
await NotifyEventHelper.ClearPriorEventsForObject(ct, proposedObj.AyaType, o.WorkOrderId, NotifyEventType.WorkorderCompletedStatusOverdue);
}
}//workorder overdue change event
}//workorder complete by overdue change event
}