Line Item ERPID Handling

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Line Item ERPID Handling

Line Item ERPIDs may be used to link order lines in an external ERP system (for example Epicor) to line items within a Primecut workorder, particularly when the REST API is in use.

 

 

NOTE Where possible remove all nested instances of the the part before creating a new revision, as failing to do so results in creation of a new line item in addition to the first, and the need to "baton pass" the line item ERPID to the new line.

 

 

 

When new line items must be created (because the part is already nested, possibly already cut) some difficulties may arise.

 

 

1.The new part revision does NOT inherit the ERPID of the old part- it will be blank.  We require part ERPIDs to point to particular part revisions, and a new revision should get a new ERPID if required.

2.The new part revision is linked to the same part root, so the ERPID of this is conserved.

3.The new line item is assigned the Line Item ERPID of the old line item, as it is effective replacing it.  The old Line Item has '[old rev <woItemID>]' suffixed to its ERPID.  This breaks the direct connection to the source ERPID line, but provides a way to maintain some linkage if required.
Typically the new line completely replaces the old line, but there may be cases where a quantity of acceptable parts have already been cut using the old revision, a "tweak" is made resulting in a new part revision and new line item, and thus a disconnected line is created as described above.

 

 

When line item ERPIDs are in use, we do not allow creation of new part revisions from line items where the line item has already been moved on to a new line.  Attempting to do so will result in an error message:

lineItemERPIDerror