From 391010ced718091a5906ee9d35ab6d61e1c04af2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 10 Mar 2021 18:09:35 +0000 Subject: [PATCH] --- server/AyaNova/biz/BizRoles.cs | 2 +- server/AyaNova/biz/TaxCodeBiz.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/AyaNova/biz/BizRoles.cs b/server/AyaNova/biz/BizRoles.cs index 2c64e2eb..0eab71a6 100644 --- a/server/AyaNova/biz/BizRoles.cs +++ b/server/AyaNova/biz/BizRoles.cs @@ -445,7 +445,7 @@ namespace AyaNova.Biz // roles.Add(AyaType.Vendor, new BizRoleSet() { - Change = AuthorizationRoles.BizAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.SalesFull | AuthorizationRoles.TechFull | AuthorizationRoles.AccountingFull, + Change = AuthorizationRoles.BizAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.SalesFull | AuthorizationRoles.TechFull | AuthorizationRoles.AccountingFull | AuthorizationRoles.InventoryFull, ReadFullRecord = AuthorizationRoles.BizAdminLimited | AuthorizationRoles.DispatchLimited | AuthorizationRoles.SalesLimited | AuthorizationRoles.TechLimited, Select = AuthorizationRoles.All }); diff --git a/server/AyaNova/biz/TaxCodeBiz.cs b/server/AyaNova/biz/TaxCodeBiz.cs index b975e05e..c5d57d27 100644 --- a/server/AyaNova/biz/TaxCodeBiz.cs +++ b/server/AyaNova/biz/TaxCodeBiz.cs @@ -241,12 +241,14 @@ namespace AyaNova.Biz || proposedObj.TaxOnTax != currentObj.TaxOnTax) { //MIGRATE_OUTSTANDING - check workorder records once wo is coded here for this tax code in use + //also any other object that uses tax codes besides global settings and purchase order items if (await ct.PurchaseOrderItem.AnyAsync(x => x.PurchaseTaxCodeId == proposedObj.Id)) AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("PurchaseOrder")); if (isGlobalDefault) AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("AdministrationGlobalSettings")); + } //Active not changeable for global default