+ hidden('popup', @$_REQUEST['popup']);
+
+ table_section_title(_("Name and Contact"));
+ text_row(_("Branch Name:"), 'br_name', null, 35, 40);
+ text_row(_("Branch Short Name:"), 'br_ref', null, 30, 30);
+
+ table_section_title(_("Sales"));
+ sales_persons_list_row( _("Sales Person:"), 'salesman', null);
+ sales_areas_list_row( _("Sales Area:"), 'area', null);
+ sales_groups_list_row(_("Sales Group:"), 'group_no', null, true);
+ locations_list_row(_("Default Inventory Location:"), 'default_location', null);
+ shippers_list_row(_("Default Shipping Company:"), 'default_ship_via', null);
+ tax_groups_list_row(_("Tax Group:"), 'tax_group_id', null);
+
+ table_section_title(_("GL Accounts"));
+
+ gl_all_accounts_list_row(_("Sales Account:"), 'sales_account', null, false, false, true);
+ gl_all_accounts_list_row(_("Sales Discount Account:"), 'sales_discount_account');
+ gl_all_accounts_list_row(_("Accounts Receivable Account:"), 'receivables_account', null, true);
+ gl_all_accounts_list_row(_("Prompt Payment Discount Account:"), 'payment_discount_account');
+ text_row(_("Bank Account Number:"), 'bank_account', null, 30, 60);
+
+ table_section(2);
+
+ if($selected_id==-1) {
+ table_section_title(_("General contact data"));
+ text_row(_("Contact Person:"), 'contact_name', null, 35, 40);
+ text_row(_("Phone Number:"), 'phone', null, 32, 30);
+ text_row(_("Secondary Phone Number:"), 'phone2', null, 32, 30);
+ text_row(_("Fax Number:"), 'fax', null, 32, 30);
+ email_row(_("E-mail:"), 'email', null, 35, 55);
+ languages_list_row( _("Document Language:"), 'rep_lang', null, _("Customer default"));
+ }
+ table_section_title(_("Addresses"));
+ textarea_row(_("Mailing Address:"), 'br_post_address', null, 35, 4);
+ textarea_row(_("Billing Address:"), 'br_address', null, 35, 4);
+ textarea_row(_("General Notes:"), 'notes', null, 35, 4);