Work Order

Work order transactions track the production of assembly items needed for stock or to fill orders. Work orders track the quantities of assemblies that need to be built and the quantities of components, or member items, needed to do so. This type of transaction is available when the Assembly Items and Work Orders features are enabled and is used when the Allow Purchase of Assembly Items accounting preference is not enabled.

Special order work orders track assemblies for a particular sale, and Production work orders track assemblies to increase stock. Both use the same work order form, but Production work orders do not link to a sales transaction. Production work orders are generated when the back ordered quantity of an assembly reaches its assigned build point. After the build point is reached, a work order is added in the Mass Create Work Orders queue. For more details, see Assembly Work Orders.

The work order record is defined in the tranInvt (inventory) XSD.

Supported Operations

The following operations can be used with work order records:

add | addList | attach / detach | delete | deleteList | get | getDeleted | getList | getSavedSearch | getSelectValue | initialize / initializeList | search | update | updateList | upsert | upsertList

Note:

You can also use the asynchronous equivalents of SOAP web services list operations. For information about asynchronous operations, see SOAP Web Services Asynchronous Operations. For more information about request processing, see Synchronous Versus Asynchronous Request Processing.

Field Definitions

The SOAP Schema Browser includes definitions for all body fields, sublist fields, search filters, and search joins available to this record. For details, see the SOAP Schema Browser’s work order reference page.

Note:

For information about using the SOAP Schema Browser, see SOAP Schema Browser.

Usage Notes

Accessing Serial/Lot or Bin Data for Line Items

As of the 2011.2 endpoint, code to access serial number, lot number, and bin number data varies according to whether the Advanced Bin Management / Numbered Inventory Management feature is enabled.

For more details, see Updating SOAP Web Services Code When Advanced Bin / Numbered Inventory Management is Enabled.

Creating a Work Order by Referencing a Sales Order Line

If appropriate, you can create a work order by referencing a line on a sales order. To use this approach, you supply values for three fields on the work order record:

This technique results in the creation of the following links between the sales order and the work order:

This approach to creating a work order is similar to the process of creating a work order through initialization. However, note that some body fields on the work order are not automatically populated. For example, you must manually populate the fields for assembly, subsidiary, and quantity.

The following Java example shows how to create a work order using this method:

          public void testCreateWO() throws Exception
{
   WorkOrder  wo = new WorkOrder();

   wo.setSourceTransactionId("27"); // SalesOrder internalId
   wo.setSourceTransactionLine(1L); // Line Number
   wo.setSpecialOrder(true);  // To create a work order by referencing a sales order, this must be true.

   wo.setAssemblyItem(mrr("10"));
   wo.setSubsidiary(mrr("1"));
   wo.setQuantity(1.0);

   String woId = c.addRecord(wo);

   c.getRecord(woId, RecordType.workOrder);
} 

        

Related Topics

General Notices