This commit is contained in:
@@ -157,9 +157,7 @@ namespace AyaNova.Biz
|
|||||||
AddError(ApiErrorCode.NOT_FOUND);
|
AddError(ApiErrorCode.NOT_FOUND);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
ValidateCanDelete(dbObject);
|
await ValidateCanDeleteAsync(dbObject);
|
||||||
if (HasErrors)
|
|
||||||
return false;
|
|
||||||
if (HasErrors)
|
if (HasErrors)
|
||||||
return false;
|
return false;
|
||||||
ct.PurchaseOrder.Remove(dbObject);
|
ct.PurchaseOrder.Remove(dbObject);
|
||||||
@@ -206,11 +204,16 @@ namespace AyaNova.Biz
|
|||||||
public void DigestSearchText(PurchaseOrder obj, Search.SearchIndexProcessObjectParameters searchParams)
|
public void DigestSearchText(PurchaseOrder obj, Search.SearchIndexProcessObjectParameters searchParams)
|
||||||
{
|
{
|
||||||
if (obj != null)
|
if (obj != null)
|
||||||
searchParams.AddText(obj.Notes)
|
searchParams.AddText(obj.Serial)
|
||||||
.AddText(obj.Serial)
|
.AddText(obj.Notes)
|
||||||
.AddText(obj.Wiki)
|
.AddText(obj.VendorMemo)
|
||||||
.AddText(obj.Tags)
|
.AddText(obj.ReferenceNumber)
|
||||||
.AddCustomFields(obj.CustomFields);
|
.AddText(obj.Text1)
|
||||||
|
.AddText(obj.Text2)
|
||||||
|
.AddText(obj.Serial)
|
||||||
|
.AddText(obj.Wiki)
|
||||||
|
.AddText(obj.Tags)
|
||||||
|
.AddCustomFields(obj.CustomFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -241,9 +244,9 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ValidateCanDelete(PurchaseOrder inObj)
|
private async Task ValidateCanDeleteAsync(PurchaseOrder inObj)
|
||||||
{
|
{
|
||||||
//whatever needs to be check to delete this object
|
await Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -261,7 +264,7 @@ namespace AyaNova.Biz
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//REPORTING
|
//REPORTING
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user