This commit is contained in:
@@ -333,7 +333,8 @@ namespace AyaNova.PlugIn.V8
|
|||||||
await ExportLoanItems(progress);
|
await ExportLoanItems(progress);
|
||||||
await ExportParts(progress);
|
await ExportParts(progress);
|
||||||
await ExportProjects(progress);
|
await ExportProjects(progress);
|
||||||
await ExportPurchaseOrders(progress);
|
//deferred to possibly never if people can live without it
|
||||||
|
// await ExportPurchaseOrders(progress);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1598,7 +1599,8 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
//Step 2: export the objects
|
//Step 2: export the objects
|
||||||
//get pos in order by created date oldest to newest to preserve order
|
//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>");
|
//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>");
|
||||||
|
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\" /></GRIDCRITERIA>");
|
||||||
progress.Append("Exporting " + pl.Count.ToString() + " " + ObjectTypeName + "s");
|
progress.Append("Exporting " + pl.Count.ToString() + " " + ObjectTypeName + "s");
|
||||||
|
|
||||||
foreach (PurchaseOrderList.PurchaseOrderListInfo i in pl)
|
foreach (PurchaseOrderList.PurchaseOrderListInfo i in pl)
|
||||||
@@ -1608,7 +1610,12 @@ namespace AyaNova.PlugIn.V8
|
|||||||
tags.Add(ImportTag);
|
tags.Add(ImportTag);
|
||||||
PurchaseOrder c = PurchaseOrder.GetItem(i.LT_PurchaseOrder_Label_PONumber.Value);
|
PurchaseOrder c = PurchaseOrder.GetItem(i.LT_PurchaseOrder_Label_PONumber.Value);
|
||||||
|
|
||||||
PurchaseOrderReceiptList prl = PurchaseOrderReceiptList.GetList("");
|
//get receipts for this PO
|
||||||
|
PurchaseOrderReceiptListDetailed prl = PurchaseOrderReceiptListDetailed.GetList(
|
||||||
|
"<?xml version=\"1.0\" encoding=\"utf-16\" standalone=\"yes\"?><GRIDCRITERIA><COLUMNITEM CM=\"aPurchaseOrderReceipt.aReceivedDate\" UI=\"LT_PurchaseOrderReceipt_Label_ReceivedDate\" PIN=\"0\" WIDTH=\"121\" SORT=\"ASC\" /><COLUMNITEM CM=\"aPurchaseOrder.aPONumber\" UI=\"LT_PurchaseOrder_Label_PONumber\" PIN=\"0\" WIDTH=\"105\" /><COLUMNITEM CM=\"grid\" UI=\"LT_O_PurchaseOrderReceipt\" PIN=\"0\" WIDTH=\"155\" /><WHEREITEMGROUP GROUPLOGICALOPERATOR=\"And\" UI=\"LT_PurchaseOrder_Label_PONumber\"><WHEREITEM COMPAREOPERATOR=\"Equals\" CM=\"aPurchaseOrder.aID\" UICOMPAREVALUE=\"\" TYPE=\"System.Guid\" COMPAREVALUE=\"{" +
|
||||||
|
c.ID.ToString().ToUpper()
|
||||||
|
+ "}\" /></WHEREITEMGROUP></GRIDCRITERIA>");
|
||||||
|
|
||||||
|
|
||||||
var ObjectTID = new TypeAndID(RootObjectTypes.PurchaseOrder, c.ID);
|
var ObjectTID = new TypeAndID(RootObjectTypes.PurchaseOrder, c.ID);
|
||||||
|
|
||||||
@@ -2806,9 +2813,9 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
LocalizedTextTable lt = LocalizedTextTable.Load(i.Locale);
|
LocalizedTextTable lt = LocalizedTextTable.Load(i.Locale);
|
||||||
progress.Op("Checking if locale " + i.Locale + " is customized");
|
progress.Op("Checking if locale " + i.Locale + " is customized");
|
||||||
//#if(DEBUG)
|
#if(DEBUG)
|
||||||
// continue;
|
continue;
|
||||||
//#endif
|
#endif
|
||||||
if (!util.LocaleIsCustomized(i.Locale, lt, progress)) continue;
|
if (!util.LocaleIsCustomized(i.Locale, lt, progress)) continue;
|
||||||
////calculate hash
|
////calculate hash
|
||||||
//List<string> allStrings = new List<string>();
|
//List<string> allStrings = new List<string>();
|
||||||
|
|||||||
Reference in New Issue
Block a user