Skip to main content

manufacturingOrdersUndoCompletion

Undoes completed lines and returns their components to a hold.

Business Rules​

  • Without outputIds, every completed line is undone.
  • Each undone line’s components return to the locations they came from and are held again for it.
  • Finished goods added at completion are removed.
  • Each undone line’s completion date and completed and consumed quantities are cleared. Its labor returns to the BOM estimate: hours and rate are cleared, and the amount becomes the product’s latest labor cost per unit times the planned quantity, or empty without one.
  • Planned quantities, location, packaging, overhead, and other costs stay.
  • A Completed order returns to In Production.
  • The completion’s recorded sync state determines whether goods are removed.
  • Both manufacturing and supply chain entitlements are required.

Error Scenarios​

  • “Manufacturing orders are not enabled for this company”
  • “Only a Completed manufacturing order can be undone.”
  • “Choose at least one line to undo.”
  • “SKU is not complete.”
  • “Can’t undo: the unit of SKU changed after completion.”
  • “Can’t undo: at least one product has insufficient quantity remaining in stock to fully reverse the production.” The order’s activity log gets a warning listing each product, its location, how many must be removed, how many are free, allocated, or missing there, and what to do.
  • “This manufacturing order is now In Production. Reload it and try again.”

Permissions Required​

  • manufacturing:complete_order
manufacturingOrdersUndoCompletion(
input: ManufacturingOrdersUndoCompletionInput!
): ManufacturingOrder!

Arguments​

manufacturingOrdersUndoCompletion.input ● ManufacturingOrdersUndoCompletionInput! non-null input common​

Parameters for ManufacturingOrdersUndoCompletion

Type​

ManufacturingOrder object manufacturing​

An order to make finished products at a building.