From 5af04fb834251c11484392ff0d9aed516dab0320 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 28 Jan 2022 21:12:51 +0000 Subject: [PATCH] --- docs/8.0/ayanova/docs/home-reviews.md | 10 ++++------ server/AyaNova/biz/ReviewBiz.cs | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/8.0/ayanova/docs/home-reviews.md b/docs/8.0/ayanova/docs/home-reviews.md index f6933041..ee65c8b2 100644 --- a/docs/8.0/ayanova/docs/home-reviews.md +++ b/docs/8.0/ayanova/docs/home-reviews.md @@ -74,12 +74,16 @@ This is the required date and time the review must take place. A review display The Review date is also used for review [notifications](home-notify-subscriptions.md). +(Once a review is set to completed date and saved it will cancel any impending notifications for it that haven't been sent yet) + #### Notes Notes is an optional field for entering more details about the review. Notes do _not_ display in the schedule form, only the Name field so the review needs to be opened to view Notes. #### Completion date +Date and time a review has been completed. + #### Completion notes @@ -94,9 +98,3 @@ Optional [wiki control](ay-start-form-wiki.md). #### Attached files Optional [attachments control](ay-start-form-attachments.md). - -000000000000000000000000000000000000000000000 -notes: -All users can see reviews assigned to them in their home menu -Supervisory roles can see all reviews assigned to anyone -Reviews display in schedule as ReviewDate start timestamp and 15 minutes long by default as there is no end date to display diff --git a/server/AyaNova/biz/ReviewBiz.cs b/server/AyaNova/biz/ReviewBiz.cs index 29080f8f..f7b21905 100644 --- a/server/AyaNova/biz/ReviewBiz.cs +++ b/server/AyaNova/biz/ReviewBiz.cs @@ -615,6 +615,7 @@ namespace AyaNova.Biz if (ayaEvent == AyaEvent.Created || ayaEvent == AyaEvent.Modified) { //# REVIEW IMMINENT + if (o.CompletedDate == null && o.ReviewDate > DateTime.UtcNow) { //notify users (time delayed) var subs = await ct.NotifySubscription.Where(z => z.EventType == NotifyEventType.ReviewImminent).ToListAsync();