This commit is contained in:
@@ -2631,7 +2631,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////##### WORKORDER ITEM SCHEDULED USER
|
//##### WORKORDER ITEM SCHEDULED USER
|
||||||
foreach (WorkorderItemScheduledUser wisu in wi.ScheduledUsers)
|
foreach (WorkorderItemScheduledUser wisu in wi.ScheduledUsers)
|
||||||
{
|
{
|
||||||
progress.Op("WorkorderItemScheduledUser " + wisu.ID.ToString());
|
progress.Op("WorkorderItemScheduledUser " + wisu.ID.ToString());
|
||||||
@@ -2647,6 +2647,26 @@ namespace AyaNova.PlugIn.V8
|
|||||||
await util.PostAsync("workorder/items/scheduled-users", dwisu.ToString());
|
await util.PostAsync("workorder/items/scheduled-users", dwisu.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//##### WORKORDER ITEM PART
|
||||||
|
foreach (WorkorderItemPart wip in wi.Parts)
|
||||||
|
{
|
||||||
|
progress.Op("WorkorderItemPart " + wip.ID.ToString());
|
||||||
|
dynamic dwip = new JObject();
|
||||||
|
dwip.workOrderId = RavenId;
|
||||||
|
dwip.workorderItemId = ravenwoitemid;
|
||||||
|
dwip.quantity = wip.Quantity;
|
||||||
|
dwip.partId = Getv7v8IdMap(wip.PartID, "part for workorder item part");
|
||||||
|
dwip.partWarehouseId = Getv7v8IdMap(wip.PartWarehouseID, "warehouse");
|
||||||
|
dwip.taxPartSaleId = Getv7v8IdMapNullOk(wip.TaxPartSaleID);
|
||||||
|
dwip.priceOverride = wip.Price;
|
||||||
|
dwip.price = wip.Price;
|
||||||
|
dwip.cost = wip.Cost;
|
||||||
|
dwip.description = wip.Description;
|
||||||
|
if (wip.PartSerialID != Guid.Empty)
|
||||||
|
dwip.serials = PartSerial.GetSerialNumberFromPartSerialID(wip.PartSerialID);
|
||||||
|
|
||||||
|
await util.PostAsync("workorder/items/parts", dwip.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}//items loop
|
}//items loop
|
||||||
|
|||||||
Reference in New Issue
Block a user