From 6be365858faf144228a40356d5b989653900730f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 29 Mar 2022 17:57:19 +0000 Subject: [PATCH] --- server/AyaNova/Controllers/EnumListController.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/server/AyaNova/Controllers/EnumListController.cs b/server/AyaNova/Controllers/EnumListController.cs index 136d437b..e1fbceab 100644 --- a/server/AyaNova/Controllers/EnumListController.cs +++ b/server/AyaNova/Controllers/EnumListController.cs @@ -182,7 +182,8 @@ namespace AyaNova.Api.Controllers ReturnList.Add(new NameIdItem() { Name = name, Id = (long)t }); } } - } else if (keyNameInLowerCase == "importable") + } + else if (keyNameInLowerCase == "importable") { //importable biz objects for administration -> import selection var values = Enum.GetValues(typeof(AyaType)); @@ -190,7 +191,11 @@ namespace AyaNova.Api.Controllers { if (t.HasAttribute(typeof(ImportableBizObjectAttribute))) { - TranslationKeysToFetch.Add(t.ToString()); + + var nameToFetch = t.ToString(); + if (t == AyaType.PartInventory) + nameToFetch = "PartByWarehouseInventoryList"; + TranslationKeysToFetch.Add(nameToFetch); } } var LT = await TranslationBiz.GetSubsetStaticAsync(TranslationKeysToFetch, translationId); @@ -200,6 +205,8 @@ namespace AyaNova.Api.Controllers if (t.HasAttribute(typeof(ImportableBizObjectAttribute))) { var tName = t.ToString(); + if (t == AyaType.PartInventory) + tName = "PartByWarehouseInventoryList"; string name = string.Empty; if (LT.ContainsKey(tName)) { @@ -532,7 +539,7 @@ namespace AyaNova.Api.Controllers ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventServerOperationsProblem"], Id = (long)NotifyEventType.ServerOperationsProblem }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventGeneralNotification"], Id = (long)NotifyEventType.GeneralNotification }); - // ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventCopyOfCustomerNotification"], Id = (long)NotifyEventType.CopyOfCustomerNotification }); + // ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventCopyOfCustomerNotification"], Id = (long)NotifyEventType.CopyOfCustomerNotification }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventWorkorderCreatedForCustomer"], Id = (long)NotifyEventType.WorkorderCreatedForCustomer }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventPMGenerationFailed"], Id = (long)NotifyEventType.PMGenerationFailed });