Additional lines on documents and posted documents
An added line is an ordinary sales line, but two fields keep its origin: the line number of the parent line and whether it is a spare part. Both stay on the line when the document is posted, so a posted invoice or shipment can still tell a spare part from a normal line.
Before you start: the document has at least one line that the app added, from the selection or from the automatic addition.
Find the additional item on a posted line
- Open the sales order, invoice or credit memo and find the added line under its parent line.
- Look at Add. Item For Line No.. It holds the line number of the parent line; on a normal line it is 0.
- Look at Spare Part. It is on when the line came from an entry with the entry type Spare.
- Post the document as usual.
- Open the posted invoice or the posted shipment. Both fields are there with the same values, so you can filter the posted lines by the parent line or by Spare Part.

Example: The order for customer 10004 Alpine Ski House carries a line with 5 auger kits, a line with 10 gasket sets and a line with 1 power cable. The gasket line has Add. Item For Line No. of the auger line and Spare Part turned off; the cable line has the same parent line number and Spare Part turned on. After posting, the posted invoice shows both values on the same lines.
What happens: The app sets both fields when it adds a line and never changes them afterwards; on an open document the seller may change them by hand. Posting and archiving carry the values to the posted and the archived lines.
Note: A document copied from another document contains the added lines as ordinary lines, without the two markers.
