This commit is contained in:
2021-07-13 20:46:09 +00:00
parent 9c28bd0709
commit 4926bdbc0a
2 changed files with 8 additions and 3 deletions

View File

@@ -338,8 +338,11 @@ namespace AyaNova.Biz
} }
if (!userIsSelfScheduledOnThisItem) removeItems.Add(wi); if (!userIsSelfScheduledOnThisItem) removeItems.Add(wi);
} }
foreach (var removeitem in removeItems) foreach (var removeitem in removeItems)
{
ret.Items.Remove(removeitem); ret.Items.Remove(removeitem);
ret.IsCompleteRecord = false;
}
} }
if (populateDisplayFields) if (populateDisplayFields)

View File

@@ -91,10 +91,12 @@ 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] [NotMapped]
public bool HasTravelAndLaborRateCosts { get; set; } = false; public bool HasTravelAndLaborRateCosts { get; set; } = false;
[NotMapped] [NotMapped]
public bool HasLoanItemCosts { get; set; } = false; 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)
[NotMapped, JsonIgnore] [NotMapped, JsonIgnore]