Improved design in Suppliers form.
authorJoe <unknown>
Sun, 4 Jan 2015 23:29:00 +0000 (00:29 +0100)
committerJoe <unknown>
Sun, 4 Jan 2015 23:29:00 +0000 (00:29 +0100)
purchasing/manage/suppliers.php

index a14c4dcd67745086feb918ac9de94d59edfa3d10..058f2bc1b2789fc18611d8fba65e8c3575d503b4 100644 (file)
@@ -141,6 +141,8 @@ function supplier_settings(&$supplier_id)
                email_row(_("E-mail:"), 'email', null, 35, 55);
                languages_list_row(_("Document Language:"), 'rep_lang', null, _('System default'));
        }
+       else
+               table_section(2);
        $dim = get_company_pref('use_dimension');
        if ($dim >= 1)
        {
@@ -153,8 +155,8 @@ function supplier_settings(&$supplier_id)
                hidden('dimension_id', 0);
        if ($dim < 2)
                hidden('dimension2_id', 0);
-       table_section(2);
-
+       if (!$supplier_id)      
+               table_section(2);
 
        table_section_title(_("Addresses"));
        textarea_row(_("Mailing Address:"), 'address', null, 35, 5);