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 }); ReturnList.Add(new NameIdItem() { Name = name, Id = (long)t });
} }
} }
} else if (keyNameInLowerCase == "importable") }
else if (keyNameInLowerCase == "importable")
{ {
//importable biz objects for administration -> import selection //importable biz objects for administration -> import selection
var values = Enum.GetValues(typeof(AyaType)); var values = Enum.GetValues(typeof(AyaType));
@@ -190,7 +191,11 @@ namespace AyaNova.Api.Controllers
{ {
if (t.HasAttribute(typeof(ImportableBizObjectAttribute))) 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); var LT = await TranslationBiz.GetSubsetStaticAsync(TranslationKeysToFetch, translationId);
@@ -200,6 +205,8 @@ namespace AyaNova.Api.Controllers
if (t.HasAttribute(typeof(ImportableBizObjectAttribute))) if (t.HasAttribute(typeof(ImportableBizObjectAttribute)))
{ {
var tName = t.ToString(); var tName = t.ToString();
if (t == AyaType.PartInventory)
tName = "PartByWarehouseInventoryList";
string name = string.Empty; string name = string.Empty;
if (LT.ContainsKey(tName)) if (LT.ContainsKey(tName))
{ {