This commit is contained in:
2020-12-31 15:20:57 +00:00
parent 0f27aa3edf
commit fbaf59ba2f

View File

@@ -315,15 +315,17 @@ namespace AyaNova.PlugIn.V8
await ExportContracts(progress);
await ExportHeadOffices(progress);
await ExportClients(progress);
await ExportVendors(progress);
await ExportLoanItems(progress);
await ExportParts(progress);
await ExportProjects(progress);
await ExportPurchaseOrders(progress);
await ExportUnits(progress);
await ExportUnitModels(progress);
await ExportVendors(progress);
await ExportUnits(progress);
await ExportExternalUsers(progress);//needs vendors, clients and headoffices already exported so needs to be here late
await ExportMemos(progress);
@@ -1680,8 +1682,8 @@ namespace AyaNova.PlugIn.V8
dynamic d = new JObject();
//neither name nor number are unique at either end by intention
d.name = c.Name;
d.name = c.Name;
progress.Op(ObjectTypeName + " " + d.name);
d.number = c.ModelNumber;
d.active = c.Active;
@@ -1694,7 +1696,7 @@ namespace AyaNova.PlugIn.V8
d.discontinuedDate = util.DateToV8(c.DiscontinuedDate);
d.warrantyLength = c.WarrantyLength;
d.warrantyTerms = c.WarrantyTerms;
TagFromv7Guid(c.UnitModelCategoryID, tags);
SetTags(d, tags);
@@ -2453,7 +2455,7 @@ namespace AyaNova.PlugIn.V8
//for (int x = 0; x < pl.Count; x++)
//list is backwards order most recent first
bool FirstEntry = true;
for (int x = pl.Count-1; x > -1; x--)
for (int x = pl.Count - 1; x > -1; x--)
{
if (!progress.KeepGoing) return;