6 include_once($path_to_root . "/includes/session.inc");
8 page(_("View Work Order Production"), true);
10 include_once($path_to_root . "/includes/date_functions.inc");
11 include_once($path_to_root . "/includes/manufacturing.inc");
12 include_once($path_to_root . "/includes/data_checks.inc");
14 include_once($path_to_root . "/manufacturing/includes/manufacturing_db.inc");
15 include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc");
17 //-------------------------------------------------------------------------------------------------
19 if ($_GET['trans_no'] != "")
21 $wo_production = $_GET['trans_no'];
24 //-------------------------------------------------------------------------------------------------
26 function display_wo_production($prod_id)
30 $myrow = get_work_order_produce($prod_id);
32 start_table($table_style);
33 $th = array(_("Production #"), _("Reference"), _("For Work Order #"),
34 _("Item"), _("Quantity Manufactured"), _("Date"));
38 label_cell($myrow["id"]);
39 label_cell($myrow["reference"]);
40 label_cell(get_trans_view_str(systypes::work_order(),$myrow["workorder_id"]));
41 label_cell($myrow["stock_id"] . " - " . $myrow["StockDescription"]);
42 qty_cell($myrow["quantity"], false, get_qty_dec($myrow["stock_id"]));
43 label_cell(sql2date($myrow["date_"]));
46 comments_display_row(29, $prod_id);
50 is_voided_display(29, $prod_id, _("This production has been voided."));
53 //-------------------------------------------------------------------------------------------------
55 display_heading(systypes::name(29) . " # " . $wo_production);
57 display_wo_production($wo_production);
59 //-------------------------------------------------------------------------------------------------