+ @if (loadingImport)
+ {
+
+
+
Finding matching stock...
+
+ }
+ else if (importCandidates.Count == 0)
+ {
+
+
No matching inventory stock found.
+
Either no stock items exist for the materials in your parts, or they have already been added to this job.
+
+ }
+ else
+ {
+
+
+
+
+
+
@importCandidates.Count(c => c.Selected) of @importCandidates.Count selected
+
+
+ @foreach (var group in importCandidates
+ .GroupBy(c => c.StockItem.MaterialId)
+ .OrderBy(g => g.First().StockItem.Material.Shape)
+ .ThenBy(g => g.First().StockItem.Material.Size))
+ {
+ var material = group.First().StockItem.Material;
+
@material.DisplayName
+
+ }
+ }
+ @if (!string.IsNullOrEmpty(importErrorMessage))
+ {
+
@importErrorMessage
+ }
+