From bb116907750d1002395a22b54e77592f7e5a6023 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 28 Apr 2020 16:04:57 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 20322c8..bbcb748 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -161,6 +161,7 @@ namespace AyaNova.PlugIn.V8 /* TODO: + * EMPTY DB ROUTE * custom fields processor for: User, Client, Contract, HeadOffice, LoanItem, part, project, purchaseorder, unit, unitmodel, vendor, workorderitem @@ -176,6 +177,9 @@ namespace AyaNova.PlugIn.V8 //Export in correct order: + //ERASE DB + util.EraseDB(); + //TAGS ExportUnitModelCategories(progress); ExportUnitServiceTypes(progress); @@ -382,6 +386,7 @@ namespace AyaNova.PlugIn.V8 d.notes = c.Notes; Tagit(c.RegionID,tags); Tagit(c.DispatchZoneID, tags); + SetTags(d, tags); util.PostAsync(" @@ -651,6 +656,18 @@ namespace AyaNova.PlugIn.V8 } + + private void SetTags(dynamic d, List tags) + { + dynamic dtags= new JArray(); + foreach(string s in tags) + dtags.Add(s); + d.tags=dtags; + } + + + + //private static string EnsureValidFileName(string fileName) //{ // //make lower and replace spaces with dashes