This commit is contained in:
@@ -1597,7 +1597,8 @@ namespace AyaNova.PlugIn.V8
|
||||
var DateCustomFields = await ExportCustomFieldSchema(ocf, ObjectTypeName, ObjectTypeName);
|
||||
|
||||
//Step 2: export the objects
|
||||
PurchaseOrderList pl = PurchaseOrderList.GetListByCriteria("");
|
||||
//get pos in order by created date oldest to newest to preserve order
|
||||
PurchaseOrderList pl = PurchaseOrderList.GetListByCriteria("<?xml version=\"1.0\" encoding=\"utf-16\" standalone=\"yes\"?><GRIDCRITERIA> <COLUMNITEM CM=\"aPurchaseOrder.aCreated\" UI=\"LT_Common_Label_Created\" PIN=\"0\" WIDTH=\"146\" SORT=\"ASC\" /> <COLUMNITEM CM=\"aPurchaseOrder.aPONumber\" UI=\"LT_PurchaseOrder_Label_PONumber\" PIN=\"0\" WIDTH=\"107\" /></GRIDCRITERIA>");
|
||||
progress.Append("Exporting " + pl.Count.ToString() + " " + ObjectTypeName + "s");
|
||||
|
||||
foreach (PurchaseOrderList.PurchaseOrderListInfo i in pl)
|
||||
@@ -1605,8 +1606,10 @@ namespace AyaNova.PlugIn.V8
|
||||
if (!progress.KeepGoing) return;
|
||||
List<string> tags = new List<string>();
|
||||
tags.Add(ImportTag);
|
||||
|
||||
PurchaseOrder c = PurchaseOrder.GetItem(i.LT_PurchaseOrder_Label_PONumber.Value);
|
||||
|
||||
PurchaseOrderReceiptList prl = PurchaseOrderReceiptList.GetList("");
|
||||
|
||||
var ObjectTID = new TypeAndID(RootObjectTypes.PurchaseOrder, c.ID);
|
||||
|
||||
dynamic d = new JObject();
|
||||
|
||||
Reference in New Issue
Block a user