|
@@ -483,7 +483,7 @@ public partial class V6ProjectImport : Window
|
|
|
var _activity = new Activity();
|
|
|
_activity.Code = _missing.Code;
|
|
|
_activity.Description = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(_missing.Code.ToLower());
|
|
|
- _activity.Problem = new ManagedProblem() { Notes = new string[] { "Created by V6 Import" } };
|
|
|
+ _activity.Problem.Notes = new string[] { "Created by V6 Import" };
|
|
|
_updates.Add(_activity);
|
|
|
}
|
|
|
}
|
|
@@ -503,7 +503,7 @@ public partial class V6ProjectImport : Window
|
|
|
var _productstyle = new ProductStyle();
|
|
|
_productstyle.Code = _missingitem;
|
|
|
_productstyle.Description = _missingitem;
|
|
|
- _productstyle.Problem = new ManagedProblem() { Notes = new string[] { "Created by V6 Import" } };
|
|
|
+ _productstyle.Problem.Notes = new string[] { "Created by V6 Import" };
|
|
|
_updates.Add(_productstyle);
|
|
|
}
|
|
|
}
|
|
@@ -524,7 +524,7 @@ public partial class V6ProjectImport : Window
|
|
|
_product.UnitOfMeasure.CopyFrom(uom);
|
|
|
_product.Code = _missingitem.Code;
|
|
|
_product.Name = _missingitem.Description;
|
|
|
- _product.Problem = new ManagedProblem() { Notes = new string[] { "Created by V6 Import" } };
|
|
|
+ _product.Problem.Notes = new string[] { "Created by V6 Import" };
|
|
|
_product.TaxCode.CopyFrom(tax);
|
|
|
_updates.Add(_product);
|
|
|
}
|
|
@@ -636,14 +636,14 @@ public partial class V6ProjectImport : Window
|
|
|
_bomitem.Dimensions.Length = _profile.Length;
|
|
|
}
|
|
|
else
|
|
|
- _bomitem.Problem = new ManagedProblem() { Notes = new string[] { $"Unable to Locate Product: {_profile.Quantity} x {_profile.Code}: {_profile.Description} ({_profile.Length})" } };
|
|
|
+ _bomitem.Problem.Notes = new string[] { $"Unable to Locate Product: {_profile.Quantity} x {_profile.Code}: {_profile.Description} ({_profile.Length})" };
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(_profile.Finish))
|
|
|
{
|
|
|
if (_styles.FirstOrDefault(x => x.Code == _profile.Finish) is { } _s)
|
|
|
_bomitem.Style.CopyFrom(_s);
|
|
|
else
|
|
|
- _bomitem.Problem = new ManagedProblem() { Notes = new string[] { $"Unable to Locate Style: {_profile.Finish}" } };
|
|
|
+ _bomitem.Problem.Notes = new string[] { $"Unable to Locate Style: {_profile.Finish}" };
|
|
|
}
|
|
|
|
|
|
_bomitem.Quantity = _profile.Quantity;
|
|
@@ -665,7 +665,7 @@ public partial class V6ProjectImport : Window
|
|
|
_bomitems.Add(_bomitem);
|
|
|
}
|
|
|
else
|
|
|
- _bomitem.Problem = new ManagedProblem() { Notes = new string[] { $"Unable to Locate Product: {_component.Quantity} x {_component.Code}: {_component.Description} ({_component.PackSize})" } };
|
|
|
+ _bomitem.Problem.Notes = new string[] { $"Unable to Locate Product: {_component.Quantity} x {_component.Code}: {_component.Description} ({_component.PackSize})" };
|
|
|
|
|
|
_bomitem.Quantity = _component.Quantity * _component.PackSize;
|
|
|
_bomitem.UnitCost = _component.Cost;
|
|
@@ -686,15 +686,15 @@ public partial class V6ProjectImport : Window
|
|
|
_bomitems.Add(_bomitem);
|
|
|
}
|
|
|
else
|
|
|
- _bomitem.Problem = new ManagedProblem() { Notes = new string[] {
|
|
|
- $"Unable to Locate Product: {_glass.Code}: {_glass.Description} ({_glass.Height} x {_glass.Width})" } };
|
|
|
+ _bomitem.Problem.Notes = new string[] {
|
|
|
+ $"Unable to Locate Product: {_glass.Code}: {_glass.Description} ({_glass.Height} x {_glass.Width})" };
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(_glass.Treatment))
|
|
|
{
|
|
|
if (_styles.FirstOrDefault(x => x.Code == _glass.Treatment) is { } _s)
|
|
|
_bomitem.Style.CopyFrom(_s);
|
|
|
else
|
|
|
- _bomitem.Problem = new ManagedProblem() { Notes = new string[] { $"Unable to Locate Style: {_glass.Treatment})" } };
|
|
|
+ _bomitem.Problem.Notes = new string[] { $"Unable to Locate Style: {_glass.Treatment})" };
|
|
|
}
|
|
|
|
|
|
_bomitem.Quantity = _glass.Quantity;
|