Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git] / purchasing / includes / ui / grn_ui.inc
index 539fc5f38e6bce953635721f7a7b894bf63e120a..81bd8617153be72374c5174a09af7efcbf9189c0 100644 (file)
@@ -13,7 +13,7 @@
 
 function display_grn_summary(&$po, $editable=false)
 {
-       global $table_style2;
+       global $table_style2, $Refs;
     start_table("$table_style2 width=90%");
     
     start_row();
@@ -22,7 +22,7 @@ function display_grn_summary(&$po, $editable=false)
     if (!is_company_currency($po->curr_code))
        label_cells(_("Order Currency"), $po->curr_code, "class='tableheader2'");
     
-    label_cells(_("For Purchase Order"), get_trans_view_str(systypes::po(), $po->order_no),
+    label_cells(_("For Purchase Order"), get_trans_view_str(ST_PURCHORDER, $po->order_no),
        "class='tableheader2'");
     
        label_cells(_("Ordered On"), $po->orig_order_date, "class='tableheader2'");
@@ -33,7 +33,7 @@ function display_grn_summary(&$po, $editable=false)
     if ($editable) 
     {
        if (!isset($_POST['ref']))
-           $_POST['ref'] = references::get_next(25);
+           $_POST['ref'] = $Refs->get_next(25);
        ref_cells(_("Reference"), 'ref', '', null, "class='tableheader2'");
                
         if (!isset($_POST['Location']))