This commit is contained in:
2022-03-29 17:57:19 +00:00
parent e14106463d
commit 6be365858f

View File

@@ -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 });