The links between the documents are held at the item line level.
The BaseEntry property, BaseLine property, and BaseType property are used to link from one document to another. On your invoice these would contain pointers to the delivery it was based on, on the delivery these would contain pointers to the sales order.
BaseType contains a BoObjectTypes reference (eg. Sales Order = 17) to let you know what type of document the line was based on.
BaseEntry contains the document key to the originating document.
BaseLine indicates which line number on the original document the current line was based on.
John.
Add a comment