X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fbank_accounts.php;h=c70fc9e9aa14059b2eb01496ce2ccecb1da118f1;hb=c31829537f02787dd94654820dd74168c054b8c4;hp=26fe90d5437ba2da3bea056095c0d654c009732a;hpb=0b253e5e0d23400838d3bfb4f27fb3fb2637b3ab;p=fa-stable.git diff --git a/gl/manage/bank_accounts.php b/gl/manage/bank_accounts.php index 26fe90d5..c70fc9e9 100644 --- a/gl/manage/bank_accounts.php +++ b/gl/manage/bank_accounts.php @@ -9,8 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 10; -$path_to_root="../.."; +$page_security = 'SA_BANKACCOUNT'; +$path_to_root = "../.."; include($path_to_root . "/includes/session.inc"); page(_("Bank Accounts")); @@ -123,7 +123,7 @@ while ($myrow = db_fetch($result)) alt_table_row_color($k); label_cell($myrow["bank_account_name"], "nowrap"); - label_cell(bank_account_types::name($myrow["account_type"]), "nowrap"); + label_cell($bank_account_types[$myrow["account_type"]], "nowrap"); label_cell($myrow["bank_curr_code"], "nowrap"); label_cell($myrow["account_code"] . " " . $myrow["account_name"], "nowrap"); label_cell($myrow["bank_name"], "nowrap"); @@ -157,14 +157,21 @@ if ($is_editing) } hidden('selected_id', $selected_id); hidden('account_code'); + hidden('account_type'); hidden('BankAccountCurrency', $_POST['BankAccountCurrency']); set_focus('bank_account_name'); } text_row(_("Bank Account Name:"), 'bank_account_name', null, 50, 100); -bank_account_types_list_row(_("Account Type:"), 'account_type', null); - +if ($is_editing) +{ + label_row(_("Account Type:"), $bank_account_types[$_POST['account_type']]); +} +else +{ + bank_account_types_list_row(_("Account Type:"), 'account_type', null); +} if ($is_editing) { label_row(_("Bank Account Currency:"), $_POST['BankAccountCurrency']);