This commit is contained in:
2021-06-14 20:05:02 +00:00
parent fce3f62e8d
commit 7f4220ae8f
2 changed files with 10 additions and 5 deletions

View File

@@ -1449,10 +1449,10 @@ namespace AyaNova.Biz
if (haveTotal == false)
{
GrandTotal = await WorkorderGrandTotalAsync(oProposed.WorkOrderId, ct);
haveTotal = true;
//Note: not a time delayed notification, however user could be flipping states quickly triggering multiple notifications that are in queue temporarily
//so this will prevent that
//Always clear any old ones for this object as they are all irrelevant the moment changed:
//so this will prevent that:
await NotifyEventHelper.ClearPriorEventsForObject(ct, AyaType.WorkOrder, oProposed.WorkOrderId, NotifyEventType.WorkorderTotalExceedsThreshold);
}
//Ok, we're here because there is a subscriber who is active and tags match so only check left is total against decvalue