diff --git a/htdocs/compta/bank/account.class.php b/htdocs/compta/bank/account.class.php
index 5576abf4f49..6459bdccce3 100644
--- a/htdocs/compta/bank/account.class.php
+++ b/htdocs/compta/bank/account.class.php
@@ -551,6 +551,7 @@ class Account extends CommonObject
$this->account_number = $obj->account_number;
$this->currency_code = $obj->currency_code;
+ $this->account_currency_code = $obj->currency_code;
$this->min_allowed = $obj->min_allowed;
$this->min_desired = $obj->min_desired;
$this->comment = $obj->comment;
diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php
index aff4369bc6c..0ce9faafbb0 100644
--- a/htdocs/compta/bank/fiche.php
+++ b/htdocs/compta/bank/fiche.php
@@ -20,11 +20,11 @@
*/
/**
- \file htdocs/compta/bank/fiche.php
- \ingroup banque
- \brief Fiche creation compte bancaire
- \version $Id$
-*/
+ * \file htdocs/compta/bank/fiche.php
+ * \ingroup banque
+ * \brief Fiche creation compte bancaire
+ * \version $Id$
+ */
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/bank.lib.php");
@@ -148,6 +148,9 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes" && $user-
}
+/*
+ * View
+ */
llxHeader();
@@ -198,13 +201,13 @@ if ($_GET["action"] == 'create')
// Currency
print '
| '.$langs->trans("Currency").' | ';
print '';
-/*
+
$selectedcode=$account->account_currency_code;
if (! $selectedcode) $selectedcode=$conf->monnaie;
$form->select_currency($selectedcode, 'account_currency_code');
-*/
- print $langs->trans("Currency".$conf->monnaie);
- print '';
+ //print $langs->trans("Currency".$conf->monnaie);
+ //print '';
+
print ' |
';
// Pays
@@ -286,7 +289,7 @@ else
dol_fiche_head($head, 'bankname', $langs->trans("FinancialAccount"));
/*
- * Confirmation de la suppression
+ * Confirmation to delete
*/
if ($_GET["action"] == 'delete')
{
@@ -327,13 +330,11 @@ else
// Currency
print '| '.$langs->trans("Currency").' | ';
print '';
- /*
+
$selectedcode=$account->account_currency_code;
if (! $selectedcode) $selectedcode=$conf->monnaie;
- $form->select_currency($selectedcode, 'account_currency_code');
- */
- print $langs->trans("Currency".$conf->monnaie);
- print '';
+ print $langs->trans("Currency".$selectedcode);
+
print ' |
';
print '| '.$langs->trans("BalanceMinimalAllowed").' | ';
@@ -439,13 +440,13 @@ else
print '';
print '';
print '';
- /*
+
$selectedcode=$account->account_currency_code;
if (! $selectedcode) $selectedcode=$conf->monnaie;
$form->select_currency($selectedcode, 'account_currency_code');
- */
- print $langs->trans("Currency".$conf->monnaie);
- print '';
+ //print $langs->trans("Currency".$conf->monnaie);
+ //print '';
+
print ' |
';
print '| '.$langs->trans("BalanceMinimalAllowed").' | ';