-
- start_table($table_style);
- if ($trans_ref)
- $th = array(_("#"), _("Reference"), _("View"), _("GL"));
+ $print_type = $_POST['filterType'];
+ $print_out = ($print_type == 10 || $print_type == 11 || $print_type == systypes::cust_dispatch() ||
+ $print_type == systypes::po() || $print_type == systypes::sales_order());
+ if ($print_out)
+ {
+ print_hidden_script($print_type);
+ if ($trans_ref)
+ $th = array(_("#"), _("Reference"), _("View"), _("Print"), _("GL"));
+ else
+ $th = array(_("#"), _("View"), _("Print"), _("GL"));
+ }