- $sql .= " AND reference LIKE '%". $_POST['OrderNumber'] . "%'";
-} else {
-
- if ($dim == 1)
- $sql .= " AND type_=1";
-
- if (isset($_POST['OpenOnly']))
- {
- $sql .= " AND closed=0";
- }
-
- if (isset($_POST['type_']) && ($_POST['type_'] > 0))
- {
- $sql .= " AND type_=" . $_POST['type_'];
- }
-
- if (isset($_POST['OverdueOnly']))
- {
- $today = date2sql(Today());
+ return print_document_link($row['id'], _("Print"), true, ST_DIMENSION, ICON_PRINT);
+}