This commit is contained in:
@@ -1078,6 +1078,10 @@ namespace AyaNova.Biz
|
|||||||
//
|
//
|
||||||
private async Task WorkOrderPopulateVizFields(WorkOrder o, bool headerOnly)
|
private async Task WorkOrderPopulateVizFields(WorkOrder o, bool headerOnly)
|
||||||
{
|
{
|
||||||
|
o.HasLoanItemCosts=UserCanViewLoanerCosts;
|
||||||
|
o.HasPartCosts=UserCanViewPartCosts;
|
||||||
|
o.HasTravelAndLaborRateCosts=UserCanViewLaborOrTravelRateCosts;
|
||||||
|
|
||||||
if (!headerOnly)
|
if (!headerOnly)
|
||||||
{
|
{
|
||||||
foreach (var v in o.States)
|
foreach (var v in o.States)
|
||||||
|
|||||||
@@ -91,6 +91,10 @@ namespace AyaNova.Models
|
|||||||
public string AlertViz { get; set; } = null;
|
public string AlertViz { get; set; } = null;
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
public bool HasPartCosts { get; set; } = false;//signal to client that part costs were not populated (due to user rights / role / type)
|
public bool HasPartCosts { get; set; } = false;//signal to client that part costs were not populated (due to user rights / role / type)
|
||||||
|
[NotMapped]
|
||||||
|
public bool HasTravelAndLaborRateCosts { get; set; } = false;
|
||||||
|
[NotMapped]
|
||||||
|
public bool HasLoanItemCosts { get; set; } = false;
|
||||||
|
|
||||||
|
|
||||||
[NotMapped, JsonIgnore]
|
[NotMapped, JsonIgnore]
|
||||||
|
|||||||
Reference in New Issue
Block a user