This commit is contained in:
@@ -1114,9 +1114,15 @@ namespace AyaNova.Biz
|
||||
//
|
||||
private async Task WorkOrderPopulateVizFields(WorkOrder o, bool headerOnly)
|
||||
{
|
||||
o.HasLoanItemCosts = UserCanViewLoanerCosts;
|
||||
o.HasPartCosts = UserCanViewPartCosts;
|
||||
o.HasTravelAndLaborRateCosts = UserCanViewLaborOrTravelRateCosts;
|
||||
|
||||
|
||||
o.UserIsRestrictedType = UserIsRestrictedType;
|
||||
o.UserIsTechRestricted = UserIsTechRestricted;
|
||||
o.UserIsSubContractorFull = UserIsSubContractorFull;
|
||||
o.UserIsSubContractorRestricted = UserIsSubContractorRestricted;
|
||||
o.UserCanViewPartCosts = UserCanViewPartCosts;
|
||||
o.UserCanViewLaborOrTravelRateCosts = UserCanViewLaborOrTravelRateCosts;
|
||||
o.UserCanViewLoanerCosts = UserCanViewLoanerCosts;
|
||||
|
||||
if (!headerOnly)
|
||||
{
|
||||
|
||||
@@ -89,12 +89,12 @@ namespace AyaNova.Models
|
||||
public bool IsLockedAtServer { get; set; } = false;//signal to client that it came from the server in a locked state
|
||||
[NotMapped]
|
||||
public string AlertViz { get; set; } = null;
|
||||
[NotMapped]
|
||||
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]
|
||||
// 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]
|
||||
public bool IsCompleteRecord { get; set; } = true;//indicates if some items were removed due to user role / type restrictions (i.e. woitems they are not scheduled on)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user