If the line numbers on your template aren't in sequence, you can set the sort order in the template so the lines print in order.
From the main menu, click Settings, then click Doc Designer.
In the Document tab, use the Template Name drop-down menu to select your Packing Slip template.
Click the product lines grid component in the template layout.
Click the Component tab
Under SORTING, select the column that lines should be sorted by, e.g. Line Number.
In Sort Direction, select either Ascending or Descending.
Click Save Now, then click Publish.

