From: Janusz Dobrowolski Date: Thu, 9 Jul 2009 16:28:17 +0000 (+0000) Subject: Fixed bug [0000139] in bank account edition. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d2502ec2dcdddb8114cbb0ec50cefc7e3faee697;p=textcart.git Fixed bug [0000139] in bank account edition. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4190086..7b0993c 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 e794f69..54bbe44 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']);