This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user