Changed API for input/lists functions, added empty hints when needed
[fa-stable.git] / gl / includes / ui / gl_payment_ui.inc
index 486862bd30e51285d7998cbed9347130d06b8d97..0f3b0aa457d1fa466459fc9ff6bbf87829b42d68 100644 (file)
@@ -84,7 +84,7 @@ function display_order_header(&$order)
 
        bank_trans_types_list_row(_("Payment Type:"), 'type', null);
 
-    ref_row(_("Reference:"), 'ref', references::get_next(systypes::bank_payment()));
+    ref_row(_("Reference:"), 'ref', '', references::get_next(systypes::bank_payment()));
 
        echo "</table>"; // inner table
 
@@ -205,8 +205,7 @@ function gl_edit_item_controls(&$order, $dim, $Index=null)
                        $_POST['code_id'] = get_company_pref('default_assembly_act');
                else
                        $_POST['code_id'] = get_company_pref('default_cogs_act');
-               text_cells(null, "CodeID2", $_POST['code_id'], 12, 10, "", "", "class='combo' rel='code_id'");
-               gl_all_accounts_list_cells(null, 'code_id', $_POST['code_id'], true, false, "class='combo' rel='CodeID2'");
+               gl_all_accounts_list('code_id', null, true, false, true);
                if ($dim >= 1)
                        dimensions_list_cells(null, 'dimension_id', null, true, " ", false, 1);
                if ($dim > 1)