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