This commit is contained in:
2021-07-13 19:36:17 +00:00
parent 3441508754
commit 750d98a525
2 changed files with 8 additions and 0 deletions

View File

@@ -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)

View File

@@ -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]