Fixed bug [0000139] in bank account edition.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 9 Jul 2009 16:28:17 +0000 (16:28 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 9 Jul 2009 16:28:17 +0000 (16:28 +0000)
CHANGELOG.txt
gl/manage/bank_accounts.php

index 41900863d0ae8edbe180caf019981763e6f71759..7b0993c890aa4873bbd6db89d97495aa7061fe2c 100644 (file)
@@ -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
index e794f697a85f6c3ab927f2d6d0f1e44960c9139e..54bbe444c6786d8d2755ea26ec06b7812c24b272 100644 (file)
@@ -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']);