X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fview%2Fwo_production_view.php;h=6cd68020850e57ed3a869665a329314026233653;hb=3713324329f0ec2effe45febe79cb659ae13d5f6;hp=28a4c7aea425a1efc090b0a2973e6112ca0bc6d0;hpb=902f1015d874c33bd7946b17de2ad80b4f2144b6;p=fa-stable.git diff --git a/manufacturing/view/wo_production_view.php b/manufacturing/view/wo_production_view.php index 28a4c7ae..6cd68020 100644 --- a/manufacturing/view/wo_production_view.php +++ b/manufacturing/view/wo_production_view.php @@ -15,12 +15,11 @@ $path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); $js = ""; -if ($use_popup_windows) +if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(900, 500); -page(_("View Work Order Production"), true, false, "", $js); +page(_($help_context = "View Work Order Production"), true, false, "", $js); include_once($path_to_root . "/includes/date_functions.inc"); -include_once($path_to_root . "/includes/manufacturing.inc"); include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/manufacturing/includes/manufacturing_db.inc"); @@ -37,12 +36,10 @@ if ($_GET['trans_no'] != "") function display_wo_production($prod_id) { - global $table_style; - $myrow = get_work_order_produce($prod_id); br(1); - start_table($table_style); + start_table(TABLESTYLE); $th = array(_("Production #"), _("Reference"), _("For Work Order #"), _("Item"), _("Quantity Manufactured"), _("Date")); table_header($th); @@ -50,22 +47,22 @@ function display_wo_production($prod_id) start_row(); label_cell($myrow["id"]); label_cell($myrow["reference"]); - label_cell(get_trans_view_str(systypes::work_order(),$myrow["workorder_id"])); + label_cell(get_trans_view_str(ST_WORKORDER,$myrow["workorder_id"])); label_cell($myrow["stock_id"] . " - " . $myrow["StockDescription"]); qty_cell($myrow["quantity"], false, get_qty_dec($myrow["stock_id"])); label_cell(sql2date($myrow["date_"])); end_row(); - comments_display_row(29, $prod_id); + comments_display_row(ST_MANURECEIVE, $prod_id); end_table(1); - is_voided_display(29, $prod_id, _("This production has been voided.")); + is_voided_display(ST_MANURECEIVE, $prod_id, _("This production has been voided.")); } //------------------------------------------------------------------------------------------------- -display_heading(systypes::name(29) . " # " . $wo_production); +display_heading($systypes_array[ST_MANURECEIVE] . " # " . $wo_production); display_wo_production($wo_production); @@ -73,7 +70,5 @@ display_wo_production($wo_production); br(2); -end_page(true); - -?> +end_page(true, false, false, ST_MANURECEIVE, $wo_production);