FIX #7756 Add better error message

This commit is contained in:
Laurent Destailleur 2017-11-06 21:17:30 +01:00
parent bc9b816719
commit 1d9873e1a9

View File

@ -83,6 +83,11 @@ if ($action == 'add_confirm')
$accountto=new Account($db);
$accountto->fetch(GETPOST('account_to','int'));
if ($accountto->currency_code != $accountfrom->currency_code) {
$error++;
setEventMessages($langs->trans("ErrorTransferBetweenDifferentCurrencyNotPossible"), null, 'errors');
}
if ($accountto->id != $accountfrom->id)
{
$db->begin();