diff --git a/ChangeLog b/ChangeLog
index cf99ec9012f3f20471e347e7a55eb80dcf9e28cc..e70e48a493aafb250289132b00f8176b2e58dcd5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,7 @@ FIX [ bug #3288 ] Tasks box is not properly drawn
 FIX [ bug #3211 ] Outstading bill amount of a client showed wrong amounts
 FIX [ bug #3321 ] Users with certain permissions were shown a "forbidden access" page even if they had the rights
 FIX [ bug #3426 ] Unable to create an invoice from a contract with extrafields
+FIX [ bug #3460 ] Bank account is not saved when creating a customer invoice and facing an error message
 
 NEW: Created new ContratLigne::insert function
 
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index b360f6b63157cafbdf7151f4554515aa3f60e4d3..dc04004653f12b631851384bae43f4cd6dd096e7 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -2121,6 +2121,10 @@ if ($action == 'create')
 	print '</td></tr>';
 
     // Bank Account
+	if (isset($_POST['fk_account'])) {
+		$fk_account = $_POST['fk_account'];
+	}
+
     print '<tr><td>' . $langs->trans('BankAccount') . '</td><td colspan="2">';
     $form->select_comptes($fk_account, 'fk_account', 0, '', 1);
     print '</td></tr>';