Merge pull request #2563 from frederic34/patch-7

Accounts "from" & "to" need to have same currency
This commit is contained in:
Laurent Destailleur 2015-04-08 11:51:41 +02:00
commit edd104a6bc

View File

@ -79,7 +79,7 @@ if ($action == 'add')
$accountto=new Account($db);
$accountto->fetch(GETPOST('account_to','int'));
if ($accountto->id != $accountfrom->id)
if (($accountto->id != $accountfrom->id) && ($accountto->currency_code == $accountfrom->currency_code))
{
$db->begin();