This commit is contained in:
2021-03-10 18:09:35 +00:00
parent 34fa34e53d
commit 391010ced7
2 changed files with 3 additions and 1 deletions

View File

@@ -445,7 +445,7 @@ namespace AyaNova.Biz
// //
roles.Add(AyaType.Vendor, new BizRoleSet() 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, ReadFullRecord = AuthorizationRoles.BizAdminLimited | AuthorizationRoles.DispatchLimited | AuthorizationRoles.SalesLimited | AuthorizationRoles.TechLimited,
Select = AuthorizationRoles.All Select = AuthorizationRoles.All
}); });

View File

@@ -241,12 +241,14 @@ namespace AyaNova.Biz
|| proposedObj.TaxOnTax != currentObj.TaxOnTax) || proposedObj.TaxOnTax != currentObj.TaxOnTax)
{ {
//MIGRATE_OUTSTANDING - check workorder records once wo is coded here for this tax code in use //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)) if (await ct.PurchaseOrderItem.AnyAsync(x => x.PurchaseTaxCodeId == proposedObj.Id))
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("PurchaseOrder")); AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("PurchaseOrder"));
if (isGlobalDefault) if (isGlobalDefault)
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("AdministrationGlobalSettings")); AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("AdministrationGlobalSettings"));
} }
//Active not changeable for global default //Active not changeable for global default