Accounts "from" & "to" need to have same currency

This commit is contained in:
Frédéric FRANCE 2015-04-08 09:09:11 +02:00
parent 369d6915b8
commit 856238c876

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();