Migrate unused parts to suggestedquantity field

This commit is contained in:
2021-11-09 19:48:25 +00:00
parent cbc2088df1
commit 30776c443c

View File

@@ -3535,7 +3535,16 @@ namespace AyaNova.PlugIn.V8
dynamic dwip = new JObject(); dynamic dwip = new JObject();
dwip.workOrderId = RavenId; dwip.workOrderId = RavenId;
dwip.workOrderItemId = ravenwoitemid; dwip.workOrderItemId = ravenwoitemid;
if (wip.Used)
{
dwip.quantity = wip.Quantity; dwip.quantity = wip.Quantity;
dwip.suggestedQuantity = 0;
}
else
{
dwip.quantity = 0;
dwip.suggestedQuantity = wip.Quantity;
}
var tryPartId = await Getv7v8IdMapNullOk(wip.PartID, RootObjectTypes.Part); var tryPartId = await Getv7v8IdMapNullOk(wip.PartID, RootObjectTypes.Part);
if (tryPartId == null) if (tryPartId == null)
{ {
@@ -5007,8 +5016,6 @@ namespace AyaNova.PlugIn.V8
#region Global / Regional WIKIPAGES #region Global / Regional WIKIPAGES
private async System.Threading.Tasks.Task ExportGlobalRegionalWiki(ProgressForm progress) private async System.Threading.Tasks.Task ExportGlobalRegionalWiki(ProgressForm progress)
{ {