Fixed printing api.
[fa-stable.git] / purchasing / inquiry / po_search.php
index b4bac8022719dd13c91c8c3e2247d67a38ff2612..c6c290bdced92544c8278ee60a41e9a482500259 100644 (file)
@@ -124,8 +124,6 @@ $sql .= " GROUP BY ".TB_PREF."purch_orders.order_no";
 
 $result = db_query($sql,"No orders were returned");
 
-print_hidden_script(18);
-
 /*show a table of the orders returned by the sql */
 
 div_start('orders_tbl');
@@ -171,7 +169,7 @@ while ($myrow = db_fetch($result))
        label_cell($myrow["curr_code"]);
        amount_cell($myrow["OrderValue"]);
        label_cell("<a href=$modify>" . _("Edit") . "</a>");
-       label_cell(print_document_link($myrow['order_no'], _("Print")));
+       label_cell(print_document_link($myrow['order_no'], _("Print"), true, 18));
        label_cell("<a href=$receive>" . _("Receive") . "</a>");
        end_row();