case 4123

This commit is contained in:
2022-03-10 00:56:15 +00:00
parent 1897d7ca56
commit d8a11de8dc
7 changed files with 7 additions and 6 deletions

View File

@@ -488,7 +488,7 @@ namespace AyaNova.Biz
if (await ct.PartAssemblyItem.AnyAsync(z => z.PartId == inObj.Id) == true)
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("PartAssembly"));
if (await ct.PartInventory.AnyAsync(z => z.PartId == inObj.Id) == true)
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("PartInventoryList"));//translates to "Part inventory"
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("PartInventoryDataList"));//translates to "Part inventory"
if (await ct.PartStockLevel.AnyAsync(m => m.PartId == inObj.Id))
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("PartStockingLevels"));
if (await ct.PurchaseOrderItem.AnyAsync(m => m.PartId == inObj.Id))