diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 29ced53..9b00e95 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8 public string PluginVersion { - get { return "7.6.1-alpha.10"; } + get { return "7.6.1-alpha.95"; } } public string About @@ -1753,14 +1753,55 @@ namespace AyaNova.PlugIn.V8 tags.Add(ImportTag); Vendor c = Vendor.GetItem(i.ID); - var ObjectTID = new TypeAndID(RootObjectTypes.Vendor, c.ID); + var ObjectTID = new TypeAndID(RootObjectTypes.Vendor, c.ID); dynamic d = new JObject(); d.name = GetUniqueName(c.Name); if (IsDuplicateMapItem(c.ID, c.Name, progress)) continue; progress.Op(ObjectTypeName + " " + d.name); d.active = c.Active; + + + d.notes = c.Notes; + d.contact = c.Contact; + d.contactNotes = c.ContactNotes; + d.webAddress = c.WebAddress; + d.accountNumber = c.AccountNumber; + d.phone1 = c.Phone1; + d.phone2 = c.Phone2; + d.phone3 = c.Phone3; + d.phone4 = c.Phone4; + d.phone5 = c.Phone5; + d.emailAddress = c.Email; + d.postAddress = c.MailToAddress.DeliveryAddress; + d.postCity = c.MailToAddress.City; + d.postRegion = c.MailToAddress.StateProv; + d.postCode = c.MailToAddress.Postal; + d.address = c.GoToAddress.DeliveryAddress; + d.city = c.GoToAddress.City; + d.region = c.GoToAddress.StateProv; + d.country = c.GoToAddress.Country; + d.latitude = c.GoToAddress.Latitude; + d.longitude = c.GoToAddress.Longitude; + switch (c.VendorType) + { + case VendorTypes.Manufacturer: + tags.Add("manufacturer.vendortype"); + break; + case VendorTypes.Shipper: + tags.Add("shipper.vendortype"); + break; + case VendorTypes.SubContractor: + tags.Add("subcontractor.vendortype"); + break; + case VendorTypes.ThirdPartyRepair: + tags.Add("thirdpartyrepair.vendortype"); + break; + case VendorTypes.Wholesaler: + tags.Add("wholesaler.vendortype"); + break; + } SetTags(d, tags);