This commit is contained in:
@@ -1757,7 +1757,7 @@ namespace AyaNova.PlugIn.V8
|
||||
//check list of this item on woitempartrequest creation, if it matches then need to fixup that po during wo export
|
||||
}
|
||||
List<poitemtowoitempartrequest> PoItemPartRequestMap = new List<poitemtowoitempartrequest>();
|
||||
|
||||
int _highestPurchaseOrderNumberExported = 0;
|
||||
private async System.Threading.Tasks.Task ExportPurchaseOrders(ProgressForm progress)
|
||||
{
|
||||
if (!progress.KeepGoing) return;
|
||||
@@ -1785,8 +1785,10 @@ namespace AyaNova.PlugIn.V8
|
||||
dynamic d = new JObject();
|
||||
d.serial = c.PONumber;
|
||||
if (IsDuplicatev7v8IdMapItem(c.ID, i.LT_PurchaseOrder_Label_PONumber.Display, progress)) continue;
|
||||
progress.Op(ObjectTypeName + " " + d.name);
|
||||
|
||||
progress.Op(ObjectTypeName + " " + d.serial);
|
||||
if (c.PONumber > _highestPurchaseOrderNumberExported)
|
||||
_highestPurchaseOrderNumberExported = c.PONumber;
|
||||
d.notes = c.Notes;
|
||||
d.vendorMemo = c.VendorMemo;
|
||||
d.dropShipToCustomerId = Getv7v8IdMapNullOk(c.DropShipToClientID);
|
||||
@@ -1912,6 +1914,12 @@ namespace AyaNova.PlugIn.V8
|
||||
await util.EventLog(util.AyaType.PurchaseOrder, RavenId, SafeGetUserMap(c.Creator), SafeGetUserMap(c.Modifier), c.Created, c.Modified);
|
||||
|
||||
}//end of PO loop
|
||||
|
||||
//set new seed number for work orders
|
||||
_highestPurchaseOrderNumberExported += 1;
|
||||
{
|
||||
await util.PutAsync("global-biz-setting/seeds/26/" + _highestPurchaseOrderNumberExported.ToString());
|
||||
}
|
||||
}
|
||||
#endregion PurchaseOrders
|
||||
|
||||
|
||||
Reference in New Issue
Block a user