This commit is contained in:
@@ -207,7 +207,7 @@ namespace AyaNova.Biz
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// GET
|
||||
//
|
||||
internal async Task<WorkOrder> WorkOrderGetAsync(long id, bool populateDisplayFields, bool logTheGetEvent = true)
|
||||
internal async Task<WorkOrder> WorkOrderGetAsync(long id, bool populateDisplayFields, bool logTheGetEvent = true, bool populateForReporting=false)
|
||||
{
|
||||
|
||||
var ret = await WorkOrderGetFullAsync(id);
|
||||
@@ -282,7 +282,7 @@ namespace AyaNova.Biz
|
||||
}
|
||||
|
||||
if (populateDisplayFields)
|
||||
await WorkOrderPopulateVizFields(ret, false, false);
|
||||
await WorkOrderPopulateVizFields(ret, false, populateForReporting);
|
||||
|
||||
if (logTheGetEvent && ret != null)
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
|
||||
@@ -868,7 +868,7 @@ namespace AyaNova.Biz
|
||||
{
|
||||
//if it's the entire workorder just get, populate and return as normal
|
||||
if (ayaType == AyaType.WorkOrder)
|
||||
return await WorkOrderGetAsync(id, true, false);
|
||||
return await WorkOrderGetAsync(id, true, false, populateForReporting);
|
||||
|
||||
var wid = await GetWorkOrderIdFromRelativeAsync(ayaType, id, ct);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user