X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fcustomer_branches.php;h=5ab27166df15c9213085aa2b1e7653602e6d2edd;hb=b2ddc6a6ed30ad69721b7d54610935020cf24247;hp=e80b9007afa0c5204d11e0394f581dac6fb80267;hpb=2b00fdb0dce9363d279b8cdc9de8879f811ca198;p=fa-stable.git diff --git a/sales/manage/customer_branches.php b/sales/manage/customer_branches.php index e80b9007..5ab27166 100644 --- a/sales/manage/customer_branches.php +++ b/sales/manage/customer_branches.php @@ -177,8 +177,7 @@ function branch_settings($selected_id) { $_POST['email'] = ""; if ($selected_id != -1) { - if ($Mode == 'Edit') { - + if ($Mode == 'Edit' || !isset($_POST['br_name'])) { //editing an existing branch $myrow = get_cust_branch($_POST['customer_id'], $_POST['branch_code']); set_focus('br_name'); @@ -250,7 +249,7 @@ function branch_settings($selected_id) { // 2006-06-14. Changed gl_al_accounts_list to have an optional all_option 'Use Item Sales 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'); + gl_all_accounts_list_row(_("Accounts Receivable Account:"), 'receivables_account', null, true); gl_all_accounts_list_row(_("Prompt Payment Discount Account:"), 'payment_discount_account'); table_section(2); @@ -320,8 +319,8 @@ else display_note(_("The selected customer does not have any branches. Please create at least one branch.")); tabbed_content_start('tabs', array( - 'settings' => array('&General settings', $selected_id!=-1), - 'contacts' => array('&Contacts', $selected_id!=-1), + 'settings' => array(_('&General settings'), $selected_id!=-1), + 'contacts' => array(_('&Contacts'), $selected_id!=-1), // 'orders' => array('S&ales orders', $selected_id!=-1) // not implemented ));