diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs
index b2f6b47..2cf6509 100644
--- a/source/Plugins/AyaNova.Plugin.V8/V8.cs
+++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs
@@ -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);
diff --git a/source/WinFormApp/Form1.cs b/source/WinFormApp/Form1.cs
index 203e0b0..a8d9dce 100644
--- a/source/WinFormApp/Form1.cs
+++ b/source/WinFormApp/Form1.cs
@@ -5367,7 +5367,62 @@ namespace AyaNova
//============== START OF SCRIPT =========================
- User.ClearLayout.Clear(User.AdministratorID);
+ //a2a2632b-8945-4d93-8513-2ee65c91adc3
+
+ /*
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ */
+ //Workorder.GetDescendant(
+ //try
+ //{
+ // //*********** This is the only block you really need *******
+ // PartList pl = PartList.GetListForSingleItem(new Guid("a2a2632b-8945-4d93-8513-2ee65c91adc3"));//my test part id
+ // PartList.PartListInfo pli = pl[0];
+ // string sTheManufaturerName = pli.LT_Part_Label_ManufacturerID.Display;
+ // string sTheManufacturerNumber = pli.LT_Part_Label_ManufacturerNumber;
+ // string sTheWholeSalerName = pli.LT_Part_Label_WholesalerID.Display;
+ // string sTheWholeSalerNumber = pli.LT_Part_Label_WholesalerNumber;
+ // //*************** But the outer try catch will give you the actual error if you need it ****
+ //}
+ //catch (Exception ex) {
+ // Exception ActualException = null;
+ // while (ActualException.InnerException != null)
+ // ActualException = ActualException.InnerException;
+ // string ActualErrorMessage = ActualException.Message;
+ //}
+ //var vvvv = "blah";
+ ////etc
//=============END OF SCRIPT ===============