$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
$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');
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();
$result = db_query($sql,"No orders were returned");
-print_hidden_script(18);
-
div_start('orders_tbl');
start_table("$table_style colspan=7 width=80%");
label_cell($date);
label_cell($myrow["curr_code"]);
amount_cell($myrow["OrderValue"]);
- label_cell(print_document_link($myrow['order_no'], _("Print")));
+ label_cell(print_document_link($myrow['order_no'], _("Print"), true, 18));
end_row();
$j++;
if (isset($_GET['AddedID'])) {
$credit_no = $_GET['AddedID'];
$trans_type = 11;
- print_hidden_script(11);
display_notification_centered(_("Credit Note has been processed"));
} elseif (isset($_GET['UpdatedID'])) {
$credit_no = $_GET['UpdatedID'];
$trans_type = 11;
- print_hidden_script(11);
display_notification_centered(_("Credit Note has been updated"));
if (isset($_GET['AddedID'])) {
$dispatch_no = $_GET['AddedID'];
- print_hidden_script(13);
display_notification(_("Dispatch processed:") . ' '.$_GET['AddedID'], true);
} elseif (isset($_GET['UpdatedID'])) {
$delivery_no = $_GET['UpdatedID'];
- print_hidden_script(13);
display_notification_centered(sprintf(_('Delivery Note # %d has been updated.'),$delivery_no));
$invoice_no = $_GET['AddedID'];
$trans_type = 10;
- print_hidden_script(10);
display_notification(_("Selected deliveries has been processed"), true);
} elseif (isset($_GET['UpdatedID'])) {
$invoice_no = $_GET['UpdatedID'];
- print_hidden_script(10);
display_notification_centered(sprintf(_('Sales Invoice # %d has been updated.'),$invoice_no));
$Ajax->activate('totals_tbl');
}
//------------------------------------------------------------------------------------------------
-print_hidden_script(10);
div_start('trans_tbl');
if (db_num_rows($result) == 0)
}
//-----------------------------------------------------------------------------------
-print_hidden_script(13);
start_form(false, false, $_SERVER['PHP_SELF'] ."?OutstandingOnly=" . $_POST['OutstandingOnly'] .SID);
$modify_page = $path_to_root . "/sales/customer_delivery.php?" . SID . "ModifyDelivery=" . $myrow["trans_no"];
$invoice_page = $path_to_root . "/sales/customer_invoice.php?" . SID . "DeliveryNumber=" .$myrow["trans_no"];
label_cell("<a href='$modify_page'>" . _("Edit") . "</a>");
- label_cell(print_document_link($myrow['trans_no'], _("Print")));
+ label_cell(print_document_link($myrow['trans_no'], _("Print"), true, 13));
label_cell($not_closed ? "<a href='$invoice_page'>" . _("Invoice") . "</a>" : '');
//-----------------------------------------------------------------------------------
if ($result)
{
- print_hidden_script(30);
-
start_form();
/*show a table of the orders returned by the sql */
div_start('orders_tbl');
$modify_page = $path_to_root . "/sales/sales_order_entry.php?" . SID . "ModifyOrderNumber=" . $myrow["order_no"];
label_cell("<a href='$modify_page'>" . _("Edit") . "</a>");
- label_cell(print_document_link($myrow['order_no'], _("Print")));
+ label_cell(print_document_link($myrow['order_no'], _("Print"), true, 30));
}
end_row();;
if (isset($_GET['AddedID'])) {
$order_no = $_GET['AddedID'];
- print_hidden_script(30);
display_notification_centered(sprintf( _("Order # %d has been entered."),$order_no));
} elseif (isset($_GET['UpdatedID'])) {
$order_no = $_GET['UpdatedID'];
- print_hidden_script(30);
display_notification_centered(sprintf( _("Order # %d has been updated."),$order_no));
} elseif (isset($_GET['AddedDN'])) {
$delivery = $_GET['AddedDN'];
- print_hidden_script(13);
display_notification_centered(sprintf(_("Delivery # %d has been entered."),$delivery));
} elseif (isset($_GET['AddedDI'])) {
$invoice = $_GET['AddedDI'];
- print_hidden_script(10);
display_notification_centered(sprintf(_("Invoice # %d has been entered."),$invoice));