This commit is contained in:
2021-02-11 18:21:24 +00:00
parent 5283f9d7af
commit 1a4ff0dce8
2 changed files with 66 additions and 3 deletions

View File

@@ -1781,10 +1781,18 @@ namespace AyaNova.PlugIn.V8
d.name = c.Name;
progress.Op(ObjectTypeName + " " + d.name);
d.number = c.ModelNumber;
if (string.IsNullOrWhiteSpace(c.ModelNumber))
{
d.number = "0";
}
else
{
d.number = c.ModelNumber;
}
d.active = c.Active;
d.notes = c.Notes;
d.vendorId = Getv7v8IdMap(c.VendorID, "Vendor for Unit Model");
if (c.VendorID != Guid.Empty)
d.vendorId = Getv7v8IdMap(c.VendorID, "Vendor for Unit Model");
d.upc = c.UPC;
d.lifeTimeWarranty = c.LifeTimeWarranty;
d.introduceDate = util.DateToV8(c.IntroducedDate);