Added payment terms categories
[fa-stable.git] / manufacturing / includes / work_order_issue_ui.inc
index dad39a9ce849605776ddc38efe3ebd2bc2ad7a07..dac556de78bafd671500ae7b57a77ee38a8013e8 100644 (file)
@@ -25,11 +25,11 @@ function add_to_issue(&$order, $new_item, $new_item_qty, $standard_cost)
 
 function display_issue_items($title, &$order)
 {
-       global $table_style, $path_to_root;
+       global $path_to_root;
 
        display_heading($title);
     div_start('items_table');
-       start_table("$table_style width=80% colspan=7");
+       start_table(TABLESTYLE, "width=80% colspan=7");
        $th = array(_("Item Code"), _("Item Description"), _("Quantity"),
                _("Unit"), _("Unit Cost"), '');
        if ( count($order->line_items)) $th[] = '';
@@ -145,9 +145,11 @@ function issue_edit_item_controls(&$order, $line_no=-1)
 
 function issue_options_controls()
 {
+       global $Refs;
+
        echo "<br>";
        start_table();
-    ref_row(_("Reference:"), 'ref', '', references::get_next(28));
+    ref_row(_("Reference:"), 'ref', '', $Refs->get_next(28));
  
        if (!isset($_POST['IssueType']))
                $_POST['IssueType'] = 0;