From c48b29ecf433f567227d2a6504a7a329924c2324 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 14 Jun 2021 17:10:41 +0000 Subject: [PATCH] --- docs/8.0/ayanova/docs/home-notify-subscriptions.md | 1 - server/AyaNova/Controllers/EnumListController.cs | 4 ++-- server/AyaNova/biz/NotifyEventType.cs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/8.0/ayanova/docs/home-notify-subscriptions.md b/docs/8.0/ayanova/docs/home-notify-subscriptions.md index d8e9e00e..342aef8f 100644 --- a/docs/8.0/ayanova/docs/home-notify-subscriptions.md +++ b/docs/8.0/ayanova/docs/home-notify-subscriptions.md @@ -94,7 +94,6 @@ There are no settings adjustable for in app General notifications, however Users | NotifyHealthCheck | Automatic daily "ping" notification to confirm notification and Generator system is active at server | | BackupStatus | Result of last Backup operation at server | | CustomerServiceImminent | Scheduled service date / time is about to be reached. Intended for Customer type User | -| PartRequested | An out of stock Part has been requested on a Work order | | WorkorderTotalExceedsThreshold | The balance of a Work order has exceeded a threshold (aka the "Andy") | | WorkorderStatusAge | A Workorder has been sitting at the selected status for longer than the selected time frame | | UnitWarrantyExpiry | A Unit's warranty expiration date is reached | diff --git a/server/AyaNova/Controllers/EnumListController.cs b/server/AyaNova/Controllers/EnumListController.cs index 33065483..cd7a2e6c 100644 --- a/server/AyaNova/Controllers/EnumListController.cs +++ b/server/AyaNova/Controllers/EnumListController.cs @@ -395,7 +395,7 @@ namespace AyaNova.Api.Controllers TranslationKeysToFetch.Add("NotifyEventNotifyHealthCheck"); TranslationKeysToFetch.Add("NotifyEventBackupStatus"); TranslationKeysToFetch.Add("NotifyEventCustomerServiceImminent"); - TranslationKeysToFetch.Add("NotifyEventPartRequested"); + //TranslationKeysToFetch.Add("NotifyEventPartRequested"); TranslationKeysToFetch.Add("NotifyEventWorkorderTotalExceedsThreshold"); TranslationKeysToFetch.Add("NotifyEventWorkorderStatusAge"); TranslationKeysToFetch.Add("NotifyEventUnitWarrantyExpiry"); @@ -430,7 +430,7 @@ namespace AyaNova.Api.Controllers ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventNotifyHealthCheck"], Id = (long)NotifyEventType.NotifyHealthCheck }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventBackupStatus"], Id = (long)NotifyEventType.BackupStatus }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventCustomerServiceImminent"], Id = (long)NotifyEventType.CustomerServiceImminent }); - ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventPartRequested"], Id = (long)NotifyEventType.PartRequested }); + //ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventPartRequested"], Id = (long)NotifyEventType.PartRequested }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventWorkorderTotalExceedsThreshold"], Id = (long)NotifyEventType.WorkorderTotalExceedsThreshold }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventWorkorderStatusAge"], Id = (long)NotifyEventType.WorkorderStatusAge }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventUnitWarrantyExpiry"], Id = (long)NotifyEventType.UnitWarrantyExpiry }); diff --git a/server/AyaNova/biz/NotifyEventType.cs b/server/AyaNova/biz/NotifyEventType.cs index da9f68db..caf1bd2e 100644 --- a/server/AyaNova/biz/NotifyEventType.cs +++ b/server/AyaNova/biz/NotifyEventType.cs @@ -32,7 +32,7 @@ namespace AyaNova.Biz NotifyHealthCheck = 19,//* NO OBJECT, direct subscription to receive recurring daily notify system "ping" sent out between 8am and 10am once every 24 hours minimum every day server local time BackupStatus = 20,//* NO OBJECT, direct subscription to receive results of last backup operation CustomerServiceImminent = 21,//* Workorder / WorkorderItemScheduledUser object, notice that scheduled service is due, can set advance notice, CUSTOMER gets delivery - PartRequested = 22,//?? HOL UP, isn't this covered by objectCreated?* Workorder object / workorderitempartrequest created tag filterable + //PartRequested = 22,//?? HOL UP, isn't this covered by objectCreated? YES, removing for now, definitely not needed specifically* Workorder object / workorderitempartrequest created tag filterable WorkorderTotalExceedsThreshold = 23,//* "the Andy" Workorder updated / created, based on balance total so conditional on DecValue WorkorderStatusAge = 24,//* Workorder STATUS unchanged for set time (stuck in state), conditional on: Duration (how long stuck), exact status selected IdValue, Tags. Advance notice can NOT be set UnitWarrantyExpiry = 25,//* Unit object created, advance notice can be used, tag conditional