X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fview%2Fwo_issue_view.php;h=63b815b6ad7eb99d623361ea6019e0a6e5ba6cd3;hb=50339ff6ffe3cbb2a6237cc6a922a98481c7a41f;hp=19b62bc0b359153968912f9baef52ffee573ba2a;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git
diff --git a/manufacturing/view/wo_issue_view.php b/manufacturing/view/wo_issue_view.php
index 19b62bc0..63b815b6 100644
--- a/manufacturing/view/wo_issue_view.php
+++ b/manufacturing/view/wo_issue_view.php
@@ -1,10 +1,22 @@
.
+***********************************************************************/
+$page_security = 'SA_MANUFTRANSVIEW';
+$path_to_root = "../..";
include_once($path_to_root . "/includes/session.inc");
-page(_("View Work Order Issue"), true);
+$js = "";
+if ($use_popup_windows)
+ $js .= get_js_open_window(900, 500);
+page(_($help_context = "View Work Order Issue"), true, false, "", $js);
include_once($path_to_root . "/includes/date_functions.inc");
include_once($path_to_root . "/includes/manufacturing.inc");
@@ -15,7 +27,7 @@ include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc");
//-------------------------------------------------------------------------------------------------
-if ($_GET['trans_no'] != "")
+if ($_GET['trans_no'] != "")
{
$wo_issue_no = $_GET['trans_no'];
}
@@ -24,19 +36,18 @@ if ($_GET['trans_no'] != "")
function display_wo_issue($issue_no)
{
- global $table_style;
-
$myrow = get_work_order_issue($issue_no);
- start_table($table_style);
+ br(1);
+ start_table(TABLESTYLE);
$th = array(_("Issue #"), _("Reference"), _("For Work Order #"),
_("Item"), _("From Location"), _("To Work Centre"), _("Date of Issue"));
- table_header($th);
+ table_header($th);
start_row();
label_cell($myrow["issue_no"]);
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["description"]);
label_cell($myrow["location_name"]);
label_cell($myrow["WorkCentreName"]);
@@ -54,17 +65,15 @@ function display_wo_issue($issue_no)
function display_wo_issue_details($issue_no)
{
- global $table_style;
-
$result = get_work_order_issue_details($issue_no);
if (db_num_rows($result) == 0)
{
- echo "
" . _("There are no items for this issue.");
- }
- else
+ display_note(_("There are no items for this issue."));
+ }
+ else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Component"), _("Quantity"), _("Units"));
table_header($th);
@@ -74,13 +83,13 @@ function display_wo_issue_details($issue_no)
$total_cost = 0;
- while ($myrow = db_fetch($result))
+ while ($myrow = db_fetch($result))
{
alt_table_row_color($k);
label_cell($myrow["stock_id"] . " - " . $myrow["description"]);
- qty_cell($myrow["qty_issued"]);
+ qty_cell($myrow["qty_issued"], false, get_qty_dec($myrow["stock_id"]));
label_cell($myrow["units"]);
end_row();;
@@ -98,7 +107,7 @@ function display_wo_issue_details($issue_no)
//-------------------------------------------------------------------------------------------------
-display_heading(systypes::name(28) . " # " . $wo_issue_no);
+display_heading($systypes_array[ST_MANUISSUE] . " # " . $wo_issue_no);
display_wo_issue($wo_issue_no);
@@ -110,7 +119,7 @@ display_wo_issue_details($wo_issue_no);
echo "
";
-end_page(true);
+end_page(true, false, false, ST_MANUISSUE, $wo_issue_no);
?>