From 916c3a6fd1dfd8dcf19ff5eb70e49b3bf3c5a338 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 9 Jul 2009 16:28:17 +0000 Subject: [PATCH] Fixed bug [0000139] in bank account edition. --- CHANGELOG.txt | 4 ++++ gl/manage/bank_accounts.php | 11 +++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 41900863..7b0993c8 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +09-Jul-2009 Jkanusz Dobrowolski +# [0000139] Change of bank account type after creation should not be allowed. +$ /gl/manage/bank_accounts.php + 01-Jul-2009 Joe Hunt # Guess what :) [0000137] Material Cost Averaging Problem (again again again) when voiding. $ /purchasing/includes/db/invoice_db.inc diff --git a/gl/manage/bank_accounts.php b/gl/manage/bank_accounts.php index e794f697..54bbe444 100644 --- a/gl/manage/bank_accounts.php +++ b/gl/manage/bank_accounts.php @@ -156,14 +156,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::name($_POST['account_type'])); +} +else +{ + bank_account_types_list_row(_("Account Type:"), 'account_type', null); +} if ($is_editing) { label_row(_("Bank Account Currency:"), $_POST['BankAccountCurrency']); -- 2.30.2