From bff537aa726f5581f11e87c2581aca18ff42a885 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 3 Aug 2021 00:40:29 +0000 Subject: [PATCH] --- server/AyaNova/biz/PMBiz.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/AyaNova/biz/PMBiz.cs b/server/AyaNova/biz/PMBiz.cs index 7b1ee4fa..2308e4fc 100644 --- a/server/AyaNova/biz/PMBiz.cs +++ b/server/AyaNova/biz/PMBiz.cs @@ -4753,6 +4753,15 @@ namespace AyaNova.Biz // internal static async Task ProcessInsufficientInventoryNotificationAsync(AyContext ct, ILogger log) { + //quick check if *anyone* is subscribed to this and early exit if not + //still here? Then get a list of all upcoming PM's by id and date + //iterate PM's + //each PM + //iterate list of subscribers and see if any pm's are within the threshold + //if so, iterate pm examine inventory and determine if short of anything and build a notification for it line by line to send as message: + //title = pm insufficient and id and object link to pm + //message = list: part name, -xx (short quantity), no text if possible so no translate needed + } ////////////////////////////////////////////////////////////////////////////////////////////////