Changed so input of account type is possible (like classes)
[fa-stable.git] / manufacturing / view / wo_production_view.php
1 <?php
2
3 $page_security = 10;
4 $path_to_root="../..";
5
6 include_once($path_to_root . "/includes/session.inc");
7
8 $js = "";
9 if ($use_popup_windows)
10         $js .= get_js_open_window(900, 500);
11 page(_("View Work Order Production"), true, false, "", $js);
12
13 include_once($path_to_root . "/includes/date_functions.inc");
14 include_once($path_to_root . "/includes/manufacturing.inc");
15 include_once($path_to_root . "/includes/data_checks.inc");
16
17 include_once($path_to_root . "/manufacturing/includes/manufacturing_db.inc");
18 include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc");
19
20 //-------------------------------------------------------------------------------------------------
21
22 if ($_GET['trans_no'] != "")
23 {
24         $wo_production = $_GET['trans_no'];
25 }
26
27 //-------------------------------------------------------------------------------------------------
28
29 function display_wo_production($prod_id)
30 {
31         global $table_style;
32
33     $myrow = get_work_order_produce($prod_id);
34
35         br(1);
36     start_table($table_style);
37     $th = array(_("Production #"), _("Reference"), _("For Work Order #"),
38         _("Item"), _("Quantity Manufactured"), _("Date"));
39     table_header($th);
40
41         start_row();
42         label_cell($myrow["id"]);
43         label_cell($myrow["reference"]);
44         label_cell(get_trans_view_str(systypes::work_order(),$myrow["workorder_id"]));
45         label_cell($myrow["stock_id"] . " - " . $myrow["StockDescription"]);
46         qty_cell($myrow["quantity"], false, get_qty_dec($myrow["stock_id"]));
47         label_cell(sql2date($myrow["date_"]));
48         end_row();
49
50     comments_display_row(29, $prod_id);
51
52         end_table(1);
53
54         is_voided_display(29, $prod_id, _("This production has been voided."));
55 }
56
57 //-------------------------------------------------------------------------------------------------
58
59 display_heading(systypes::name(29) . " # " . $wo_production);
60
61 display_wo_production($wo_production);
62
63 //-------------------------------------------------------------------------------------------------
64
65 br(2);
66
67 end_page(true);
68
69 ?>
70