This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user