Acc_ledger : use $currency_rate instead of variable from extract

This commit is contained in:
Dany wm De Bontridder 2021-06-29 19:22:44 +02:00
parent 6e6f93b7ca
commit 5ca58ce9ca

View file

@ -1366,7 +1366,7 @@ class Acc_Ledger extends jrn_def_sql
$acc_op->desc=${'ld'.$i};
// Amount in default currency , usually EUR
$acc_op->amount=round(bcdiv(${'amount'.$i},$p_currency_rate),2);
$acc_op->amount=round(bcdiv(${'amount'.$i},$currency_rate),2);
$acc_op->grpt=$seq;
$acc_op->poste=$poste;
$acc_op->jrn=$this->id;