Migrate unused parts to suggestedquantity field
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user